/* Auth pages — Login & Register (minimal) */

.auth-page {
    background: var(--bg-secondary);
    min-height: calc(100vh - 5rem);
    padding: 2.5rem 1rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page--register {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.auth-shell {
    width: 100%;
    max-width: 28rem;
}

.auth-page--register .auth-shell {
    max-width: 32rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-brand {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.auth-brand img {
    height: 2.75rem;
    width: auto;
    display: block;
}

.auth-header__title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.auth-header__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.auth-required {
    color: var(--error-color);
    font-weight: 400;
    margin-left: 0.15rem;
}

.auth-field .form-control,
.auth-field .form-select {
    font-size: 0.9375rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field .form-control::placeholder {
    color: var(--text-muted);
}

.auth-field .form-control:focus,
.auth-field .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 53, 106, 0.12);
}

.auth-input-group {
    display: flex;
    align-items: stretch;
}

.auth-input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.auth-input-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    border: 1px solid var(--border-light);
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-input-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.auth-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.auth-status {
    font-size: 0.75rem;
    margin: 0;
}

.auth-checks {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.auth-checks .form-check {
    margin: 0;
    padding-left: 1.5rem;
}

.auth-checks .form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    border-color: var(--border-medium);
}

.auth-checks .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-checks .form-check-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.auth-checks .form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-checks .form-check-label a:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 0.25rem;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.25rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Password strength — subtle */
.auth-page .password-strength-indicator {
    display: none;
    margin: 0.25rem 0 0;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
}

.auth-page .password-strength-indicator.weak {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    color: var(--error-color);
}

.auth-page .password-strength-indicator.medium {
    display: block;
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.auth-page .password-strength-indicator.strong {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 1.5rem 1rem 2.5rem;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
    }

    .auth-form__row {
        grid-template-columns: 1fr;
    }
}
