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

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

.auth-page__inner {
    width: 100%;
    max-width: 400px;
}

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

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

.auth-card__logo {
    height: 48px;
    width: auto;
    display: block;
    margin: 0 auto 1rem;
    object-fit: contain;
}

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

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

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

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

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

.auth-field__input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field__input::placeholder {
    color: var(--text-muted);
}

.auth-field__input:hover {
    border-color: var(--border-dark);
}

.auth-field__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 53, 106, 0.12);
}

.auth-password-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.auth-password-wrap .auth-field__input {
    padding-right: 2.75rem;
}

[dir="rtl"] .auth-password-wrap .auth-field__input {
    padding-right: 0.75rem;
    padding-left: 2.75rem;
}

.auth-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: color 0.15s ease;
}

[dir="rtl"] .auth-password-toggle {
    right: auto;
    left: 0;
    border-radius: 8px 0 0 8px;
}

.auth-password-toggle:hover {
    color: var(--text-secondary);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
}

.auth-check__input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-check__label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.auth-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.6875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.auth-submit:hover:not(:disabled) {
    background: var(--primary-dark);
}

.auth-submit:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

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

.auth-footer__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.auth-footer__text .auth-link {
    font-size: inherit;
    font-weight: 600;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .auth-page {
        padding: 1.5rem 1rem 2rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
}
