:root {
    --pr-bg: #ffffff;
    --pr-card: #ffffff;
    --pr-input: #f1f3f6;
    --pr-text: #111827;
    --pr-muted: #667085;
    --pr-border: rgba(15, 23, 42, 0.10);
    --pr-primary: #2563eb;
    --pr-primary-2: #60a5fa;
    --pr-primary-dark: #1d4ed8;
    --pr-green: #16a34a;
    --pr-red: #dc2626;
    --pr-orange: #f59e0b;
    --pr-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--pr-bg);
    color: var(--pr-text);
}

.air-password-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #ffffff;
}

.air-password-card {
    position: relative;
    width: min(100%, 420px);
    padding: 34px 32px;
    border: 1px solid var(--pr-border);
    border-radius: 28px;
    background: var(--pr-card);
    box-shadow: var(--pr-shadow);
    text-align: center;
}

.air-password-card-wide {
    width: min(100%, 460px);
}

.air-password-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f5f5f5;
    color: #111111;
    text-decoration: none;
}

.air-password-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    text-align: left;
}

.air-password-brand > div {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-primary-2));
    color: #ffffff;
}

.air-password-brand strong {
    display: block;
    color: var(--pr-text);
    font-size: 14px;
    font-weight: 900;
}

.air-password-brand span {
    display: block;
    margin-top: 2px;
    color: var(--pr-muted);
    font-size: 11px;
    font-weight: 700;
}

.air-password-card h1 {
    margin: 0;
    color: var(--pr-text);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.air-password-card p {
    max-width: 330px;
    margin: 14px auto 24px;
    color: var(--pr-muted);
    font-size: 14px;
    line-height: 1.6;
}

.air-password-card p strong {
    color: var(--pr-text);
}

.air-password-card form {
    margin: 0;
    text-align: left;
}

.air-password-card label {
    display: block;
    margin: 0 0 8px;
    color: var(--pr-muted);
    font-size: 12px;
    font-weight: 800;
}

.air-password-input {
    position: relative;
    margin-bottom: 16px;
}

.air-password-input > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pr-primary);
    font-size: 14px;
}

.air-password-input input {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    padding: 0 46px;
    background: var(--pr-input);
    color: var(--pr-text);
    outline: none;
    font-size: 14px;
    font-weight: 700;
}

.air-password-input input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.air-password-input button {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--pr-muted);
    cursor: pointer;
}

.air-password-card form > button:not(#airResendOtpBtn),
#airForgotPasswordSubmit,
#airOtpSubmit,
#airResetPasswordSubmit {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-primary-2));
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.22s ease;
}

.air-password-card form > button:hover,
#airForgotPasswordSubmit:hover,
#airOtpSubmit:hover,
#airResetPasswordSubmit:hover {
    background: linear-gradient(135deg, var(--pr-primary-dark), var(--pr-primary));
    transform: translateY(-1px);
}

.air-password-card form > button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.air-password-link,
.air-resend-form button {
    display: block;
    width: fit-content;
    margin: 18px auto 0;
    border: 0;
    background: transparent;
    color: var(--pr-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.air-resend-form button:disabled {
    color: var(--pr-muted);
    cursor: not-allowed;
}

.air-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 9px;
    margin-bottom: 16px;
}

.air-otp-input {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--pr-input);
    color: var(--pr-text);
    outline: none;
    text-align: center;
    font-size: 23px;
    font-weight: 900;
}

.air-otp-input:focus {
    background: #f8faff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.air-password-status {
    margin-bottom: 14px;
    text-align: center;
    color: var(--pr-muted);
    font-size: 12px;
    font-weight: 800;
}

.air-password-status strong {
    color: var(--pr-primary);
}

/* Toast */
.air-password-toast-wrap {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 99999;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100vw - 28px));
}

.air-password-toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px;
    border-radius: 16px;
    background: #ffffff;
    color: var(--pr-text);
    border: 1px solid var(--pr-border);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    transform: translateX(24px);
    opacity: 0;
    animation: airPasswordToastIn 0.28s ease forwards;
}

.air-password-toast-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #ffffff;
    font-size: 14px;
}

.air-password-toast.success .air-password-toast-icon {
    background: var(--pr-green);
}

.air-password-toast.error .air-password-toast-icon {
    background: var(--pr-red);
}

.air-password-toast.warning .air-password-toast-icon {
    background: var(--pr-orange);
}

.air-password-toast.info .air-password-toast-icon {
    background: var(--pr-primary);
}

.air-password-toast h4 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 900;
}

.air-password-toast p {
    margin: 0;
    color: var(--pr-muted);
    font-size: 13px;
    line-height: 1.5;
}

.air-password-toast-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--pr-muted);
    cursor: pointer;
}

.air-password-toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--pr-primary);
    animation: airPasswordToastProgress 4.5s linear forwards;
}

.air-password-toast.success .air-password-toast-progress {
    background: var(--pr-green);
}

.air-password-toast.error .air-password-toast-progress {
    background: var(--pr-red);
}

.air-password-toast.warning .air-password-toast-progress {
    background: var(--pr-orange);
}

@keyframes airPasswordToastIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes airPasswordToastOut {
    to {
        transform: translateX(24px);
        opacity: 0;
    }
}

@keyframes airPasswordToastProgress {
    to {
        width: 0%;
    }
}

@media (max-width: 520px) {
    .air-password-page {
        padding: 14px;
    }

    .air-password-card {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .air-password-card h1 {
        font-size: 25px;
    }

    .air-otp-grid {
        gap: 7px;
    }

    .air-otp-input {
        height: 48px;
        font-size: 21px;
    }

    .air-password-toast-wrap {
        top: 12px;
        right: 12px;
    }
}