.auth-page {
    min-height: 100vh;
    background: #1a1a1a url('../img/login-bg.png') center center / cover no-repeat;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.auth-header {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 14px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.auth-header-logo {
    height: 42px;
    width: auto;
    display: block;
}

.auth-page-body {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 71px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 7vw, 100px);
    padding: 48px 24px;
}

.auth-hero {
    flex: 0 1 480px;
    max-width: 480px;
    color: #fff;
}

.auth-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
}

.auth-hero p {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 400;
    opacity: 0.95;
}

.auth-card-panel {
    flex: 0 0 420px;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 36px 32px 32px;
}

.auth-card-centered {
    text-align: center;
}

.auth-card-title {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

.auth-card-subtitle {
    margin: 0 0 28px;
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 14px 44px 14px 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-input:focus {
    border-color: #7aadae;
    box-shadow: 0 0 0 3px rgba(122, 173, 174, 0.2);
}

.auth-field.is-error .auth-input {
    border-color: #dc2626;
}

.auth-field-icon {
    position: absolute;
    right: 12px;
    top: 24px;
    transform: translateY(-50%);
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.auth-toggle-password {
    pointer-events: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.auth-toggle-password .icon-eye[hidden],
.auth-toggle-password .icon-eye-off[hidden] {
    display: none;
}

.auth-field-error {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: #dc2626;
}

.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #7aadae;
}

.auth-link {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius);
    background: var(--btn-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-btn:hover:not(:disabled) {
    background: var(--btn-primary-hover);
    color: #fff;
    text-decoration: none;
}

.auth-btn:disabled {
    background: var(--btn-primary-disabled);
    cursor: not-allowed;
}

.auth-back-link {
    display: block;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--btn-primary);
    text-decoration: none;
}

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

.auth-sent-state {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 960px) {
    .auth-page-body {
        flex-direction: column;
        justify-content: center;
        padding: 32px 20px;
    }

    .auth-hero {
        text-align: center;
        max-width: none;
    }

    .auth-card-panel {
        flex: none;
        width: 100%;
        max-width: 420px;
    }
}
