:root{
    --pgco-brand:#19284F;
    --pgco-accent:#EF4444;
    --pgco-muted:#53575e;
    --pgco-bg:#F7F8FA;
    --pgco-card:#FFFFFF;
    --pgco-text:#1B2748;
    --pgco-chip:#EAEDEF;
    --pgco-border:#E5E8EF;
    --container:1200px;
}

.pgco-auth-page{
    background:var(--pgco-bg);
    padding:24px 12px 40px;
    font-family:'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color:var(--pgco-text);
}

.pgco-auth-wrapper{
    max-width:420px;
    margin:40px auto;
    background:var(--pgco-card);
    border-radius:18px;
    box-shadow:0 12px 26px rgba(0,0,0,.06);
    padding:22px 18px 20px;
    box-sizing:border-box;
}

.pgco-auth-title{
    font-size:20px;
    font-weight:800;
    margin:0 0 8px;
    text-align:right;
}

.pgco-auth-subtitle{
    margin:0 0 16px;
    font-size:14px;
    color:var(--pgco-muted);
    text-align:right;
    line-height:1.7;
}

.pgco-auth-alert{
    font-size:13px;
    border-radius:10px;
    padding:10px 12px;
    margin-bottom:12px;
    line-height:1.6;
}

.pgco-auth-alert-error{
    background:#FEE2E2;
    color:#B91C1C;
}

.pgco-auth-alert-success{
    background:#ECFDF5;
    color:#166534;
}

.pgco-auth-form{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:8px;
}

.pgco-auth-label{
    display:flex;
    flex-direction:column;
    gap:6px;
    text-align:right;
}

.pgco-auth-label-text{
    font-size:14px;
    font-weight:600;
}

.pgco-auth-input{
    width:100%;
    padding:10px 12px;
    margin: 10px 0;
    border-radius:10px;
    border:1px solid var(--pgco-border);
    font-size:15px;
    font-weight: 700;
    outline:none;
    background:#fdfdfd;
    direction:rtl;
}

.pgco-auth-input:focus{
    border-color:var(--pgco-brand);
    box-shadow:0 0 0 1px rgba(25,40,79,.1);
}

.pgco-auth-helper{
    font-size:13px;
    color:var(--pgco-muted);
    margin:2px 0 8px;
    text-align:right;
}

.pgco-auth-btn{
    margin-top:6px;
    background:var(--pgco-brand);
    color:#fff;
    border:none;
    border-radius:999px;
    padding:10px 16px;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
    text-align:center;
    transition:background .18s ease, transform .12s ease, box-shadow .12s ease;
}

.pgco-auth-btn:hover{
    background:#111a33;
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(0,0,0,.12);
}

.pgco-auth-btn:active{
    transform:translateY(0);
    box-shadow:none;
}

/* OTP grid */

.pgco-auth-otp-grid{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin:8px 0 4px;
    direction:ltr;
}

.pgco-auth-input-otp{
    width:100%;
    max-width:56px;
    aspect-ratio:1 / 1;
    text-align:center;
    font-size:20px;
    font-weight:700;
    border-radius:12px;
    border:1px solid var(--pgco-border);
    outline:none;
    background:#fdfdfd;
    box-sizing:border-box;
}

.pgco-auth-input-otp:focus{
    border-color:var(--pgco-brand);
    box-shadow:0 0 0 1px rgba(25,40,79,.1);
}

/* ریسپانسیو کوچک */

@media (max-width:480px){
    .pgco-auth-wrapper{
        margin:24px auto;
        padding:18px 14px 16px;
        border-radius:16px;
    }
    .pgco-auth-title{
        font-size:18px;
    }
    .pgco-auth-subtitle{
        font-size:13px;
    }
    .pgco-auth-input,
    .pgco-auth-btn{
        font-size:13px;
    }
    .pgco-auth-input-otp{
        max-width:48px;
        font-size:18px;
    }
}
