/* --- Base Page Header --- */
.page-header{
    background: linear-gradient(rgba(0,31,84,0.85), rgba(0,31,84,0.85));
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 90px 0 80px 0;
    position: relative;
    overflow: hidden;
}

/* spacing tweak for auth page */
.account-header{
    padding: 80px 0 70px 0;
    margin-bottom: 40px;
}

/* Header variant for auth page */
.account-header{
    margin-bottom: 35px;
}

/* Card */
.auth-card{
    background: #fff;
    border-radius: 15px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

/* Icon */
.auth-icon{
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--rasa-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
    transition: all 0.3s ease;
}
.auth-icon svg{
    width: 34px;
    height: 34px;
    fill: currentColor;
}
.auth-card:hover .auth-icon{
    background: var(--rasa-blue);
    color: #fff;
}

/* Inputs: align with other pages */
.auth-card .form-control,
.auth-card .form-select{
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus{
    background-color: #fff;
    border-color: var(--rasa-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 31, 84, 0.15);
}

/* input-group + prefix */
.auth-card .input-group-text{
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
.auth-card .input-group .form-control{
    border-radius: 8px;
}

/* Button: same as contact submit */
.auth-card .btn-submit{
    background-color: var(--rasa-red);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
.auth-card .btn-submit:hover{
    background-color: #c01522;
    transform: translateY(-2px);
}

/* Help link */
.auth-help{
    color: #6c757d;
}
.auth-help a{
    color: var(--rasa-blue);
    text-decoration: none;
}
.auth-help a:hover{
    color: var(--rasa-red);
    text-decoration: underline;
}

/* Make alerts look nice inside the card */
.auth-card .alert{
    border-radius: 12px;
}


/* Mobile input group force LTR */
.mobile-group{
    direction: ltr;
}

.mobile-group .form-control{
    text-align: left;
    direction: ltr;
}

.mobile-group .input-group-text{
    background:#fff;
    border:1px solid #dee2e6;
    border-radius:8px 0 0 8px;
}

/* remove double radius conflict */
.mobile-group .form-control{
    border-radius:0 8px 8px 0;
}

/* page-header + account-header اگر قبلاً نداری */

.account-header{
    padding: 80px 0 70px 0;
    margin-bottom: 40px;
}

/* auth card shared */
.auth-card{
    background:#fff;
    border-radius:15px;
    padding:28px;
    box-shadow:0 10px 30px rgba(0,0,0,0.06);
    border:1px solid rgba(0,0,0,0.04);
}
.auth-icon{
    width:78px;
    height:78px;
    border-radius:50%;
    background:var(--bg-light);
    color:var(--rasa-blue);
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 14px auto;
    transition:all 0.3s ease;
}
.auth-icon svg{
    width:34px;
    height:34px;
    fill:currentColor;
}
.auth-card:hover .auth-icon{
    background:var(--rasa-blue);
    color:#fff;
}

.auth-card .form-control{
    padding:12px;
    border-radius:8px;
    border:1px solid #dee2e6;
    background-color:#f8f9fa;
}
.auth-card .form-control:focus{
    background-color:#fff;
    border-color:var(--rasa-blue);
    box-shadow:0 0 0 0.25rem rgba(0,31,84,0.15);
}

/* OTP input: بزرگتر + فاصله‌گذاری خوانا */
.otp-input{
    text-align:center;
    letter-spacing: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    padding: 14px 12px;
}

/* button */
.btn-submit{
    background-color: var(--rasa-red);
    color:#fff;
    padding:12px 18px;
    border-radius:10px;
    border:none;
    font-weight:700;
    transition:all 0.3s ease;
}
.btn-submit:hover{
    background-color:#c01522;
    transform:translateY(-2px);
}

/* help */
.auth-help{ color:#6c757d; }
.auth-help a{
    color:var(--rasa-blue);
    text-decoration:none;
}
.auth-help a:hover{
    color:var(--rasa-red);
    text-decoration:underline;
}

/* directional icons (RTL aware) */
[dir="rtl"] .icon-direction{
    transform: scaleX(-1);
}


/* LTR برای پیش‌شماره */
.mobile-group{
    direction: ltr;
}
.mobile-group .form-control{
    text-align: left;
    direction: ltr;
}

/* قشنگ‌تر کردن readonly */
.mobile-group .form-control[readonly]{
    background-color: #f1f3f5;
    cursor: not-allowed;
}

/* RTL flip برای آیکون جهت‌دار */
[dir="rtl"] .icon-direction{
    transform: scaleX(-1);
}

/* LTR برای پیش‌شماره */
.mobile-group{
    direction: ltr;
}
.mobile-group .form-control{
    text-align: left;
    direction: ltr;
}

/* قشنگ‌تر کردن readonly */
.mobile-group .form-control[readonly]{
    background-color: #f1f3f5;
    cursor: not-allowed;
}

/* RTL flip برای آیکون جهت‌دار */
[dir="rtl"] .icon-direction{
    transform: scaleX(-1);
}

/* Base Alert Box */
.app-alert-box{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    line-height: 1.6;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    animation: fadeSlideIn 0.25s ease;
}

/* Icon */
.app-alert-icon{
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* Content */
.app-alert-content{
    flex: 1;
}

.app-alert-title{
    font-weight: 700;
    margin-bottom: 3px;
}

.app-alert-text{
    font-size: 0.9rem;
    color: #555;
}

/* SUCCESS */
.app-success{
    border-color: #d1e7dd;
    background-color: #f6fffb;
}
.app-success .app-alert-icon{
    background-color: #d1e7dd;
    color: #0f5132;
}
.app-success .app-alert-title{
    color: #0f5132;
}

/* INFO */
.app-info{
    border-color: #cfe2ff;
    background-color: #f4f8ff;
}
.app-info .app-alert-icon{
    background-color: #cfe2ff;
    color: var(--rasa-blue);
}
.app-info .app-alert-title{
    color: var(--rasa-blue);
}

/* WARNING */
.app-warning{
    border-color: #ffe69c;
    background-color: #fffaf0;
}
.app-warning .app-alert-icon{
    background-color: #ffe69c;
    color: #856404;
}
.app-warning .app-alert-title{
    color: #856404;
}

/* ERROR */
.app-error{
    border-color: #f5c2c7;
    background-color: #fff5f6;
}
.app-error .app-alert-icon{
    background-color: #f5c2c7;
    color: var(--rasa-red);
}
.app-error .app-alert-title{
    color: var(--rasa-red);
}

/* Animation */
@keyframes fadeSlideIn{
    from{
        opacity: 0;
        transform: translateY(-6px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL spacing fix */
[dir="rtl"] .app-alert-box{
    text-align: right;
}
