﻿.auth-page {
    min-height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
    background: #f6f8fb;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

    .auth-logo img {
        max-height: 46px;
    }

.auth-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-description {
    font-size: 0.95rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.reset-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.reset-step {
    display: flex;
    align-items: center;
    flex: 1;
}

    .reset-step:last-child {
        flex: 0;
    }

.reset-step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.reset-step.active .reset-step-number {
    background: #2563eb;
    color: #ffffff;
}

.reset-step.completed .reset-step-number {
    background: #16a34a;
    color: #ffffff;
}

.reset-step-line {
    height: 2px;
    flex: 1;
    background: #e5e7eb;
    margin: 0 0.5rem;
}

.reset-step.completed .reset-step-line {
    background: #16a34a;
}

.auth-form-group {
    margin-bottom: 1rem;
}

.auth-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.45rem;
}

.auth-input {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 0.9rem;
    font-size: 0.95rem;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .auth-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    }

    .auth-input::placeholder {
        color: #9ca3af;
    }

    .auth-input.input-validation-error {
        border-color: #dc2626;
    }

        .auth-input.input-validation-error:focus {
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
        }

.auth-validation {
    display: block;
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.35rem;
}

.auth-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-button {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

    .auth-button:hover {
        background: #1d4ed8;
    }

    .auth-button:active {
        transform: translateY(1px);
    }

    .auth-button:disabled {
        background: #93c5fd;
        cursor: not-allowed;
    }

.auth-secondary-action {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

    .auth-link:hover {
        text-decoration: underline;
    }

.otp-input {
    text-align: center;
    letter-spacing: 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.password-rules {
    margin-top: 0.75rem;
    padding: 0.85rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.password-rules-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.4rem;
}

.password-rules ul {
    padding-left: 1.1rem;
    margin: 0;
}

.password-rules li {
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.auth-success-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.auth-link-button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
}

    .auth-link-button:hover {
        text-decoration: underline;
    }

    .auth-link-button:focus {
        outline: none;
    }

    .auth-link-button:focus-visible {
        outline: 2px solid rgba(37, 99, 235, 0.35);
        outline-offset: 3px;
        border-radius: 4px;
    }

@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .auth-title {
        font-size: 1.35rem;
    }

    .auth-description {
        font-size: 0.9rem;
    }

    .reset-step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}
