/* Tokens specific to the login screen. */
:root {
    --login-placeholder: #4a6a8a;
    --login-card-shadow: 0 8px 40px rgba(0,0,0,0.4);
    --login-error-bg: rgba(220, 53, 69, 0.15);
    --login-error-border: rgba(220, 53, 69, 0.4);
    --login-error-text: #ff8a9a;
}

.app-content {
    min-height: 100vh;
    padding: 0;
    display: flex;
    background: var(--white);
}

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    background: var(--white);
}

.login-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.login-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Colours and weight come from .brand (base.css): only the scale changes here. */
.login-logo {
    font-size: 2.2rem;
    letter-spacing: -1px;
    margin-bottom: 48px;
    text-align: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: var(--login-card-shadow);
}

.login-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    text-align: center;
}

.login-card .login-subtitle {
    font-size: 0.875rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 32px;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.login-field input {
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--dark);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.login-field input::placeholder { color: var(--login-placeholder); }
.login-field input:focus { border-color: var(--primary); }

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 8px;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s, transform 0.1s;
}

.login-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.login-btn:active { transform: translateY(0); }

.login-error {
    background: var(--login-error-bg);
    border: 1px solid var(--login-error-border);
    color: var(--login-error-text);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.login-already {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 20px;
}

.login-already a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-right { display: none; }
    .login-left { padding: 32px 24px; }
}
