/* ============================================================
   Account Auth Views — 2026 restyle (login / password / change)
   CSS-only: keeps legacy markup + all JS hooks intact.
   ============================================================ */

body {
    background:
        radial-gradient(1100px 520px at 85% -12%, rgba(99, 102, 241, .18) 0%, rgba(139, 92, 246, .08) 45%, transparent 70%),
        radial-gradient(900px 480px at -10% 110%, rgba(236, 72, 153, .12) 0%, transparent 60%),
        linear-gradient(180deg, #f4f5ff 0%, #f8fafc 100%);
    overflow-x: hidden;
    overflow-y: auto !important;
}

/* ---------- auth card shell (re-theme legacy containers) ---------- */
.main-continar {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 16px 32px;
        box-sizing: border-box;
    }

.section-top, .section-bottom { display: none; }

.register-section,
.login-password {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: min(448px, 100%) !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 26px 24px 22px !important;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 30px 60px -22px rgba(49, 46, 129, .28),
        0 6px 18px -6px rgba(15, 23, 42, .08);
    z-index: 1;
}

#form-submit { height: auto !important; }

/* accent bar */
.register-section::before,
.login-password::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6 55%, #ec4899);
}

.register-section .row,
.login-password .row {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* ---------- headings ---------- */
.p-Title {
    width: 100% !important;
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #1e1b4b;
    letter-spacing: -0.2px;
    margin: 0 0 14px !important;
    line-height: 1.4;
}

.register-section [class*="col-"],
.login-password [class*="col-"] {
    width: 100% !important;
}

.register-section [class*="col-"].text-center p,
.login-password [class*="col-"].text-center p {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569;
    margin: 6px 0 4px !important;
    text-align: right;
}

/* ---------- inputs ---------- */
.inputphonenumber,
.inputpassword {
    width: 100% !important;
    max-width: 100% !important;
    height: 46px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background-color: #f8fafc;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 22px 22px;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    padding: 0 16px 0 40px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    direction: rtl;
}
.inputphonenumber::placeholder,
.inputpassword::placeholder { color: #94a3b8; font-size: 13px; }
.inputphonenumber:focus,
.inputpassword:focus {
    outline: none;
    border-color: #6366f1;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}

/* phone & otp inputs stay LTR for digits */
.inputphonenumber { text-align: center; direction: ltr; letter-spacing: 1.5px; }

/* ---------- captcha (legacy captchaDiv wrapper) ---------- */
.captchaDiv { width: 100%; margin: 6px 0 2px; }

/* ---------- primary button ---------- */
.register-btn {
    width: 100%;
    height: 48px;
    margin-top: 10px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    box-shadow: 0 12px 24px -10px rgba(79, 70, 229, .55);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.register-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -10px rgba(79, 70, 229, .65);
    filter: brightness(1.04);
}
.register-btn:active { transform: translateY(0); }

/* ---------- footer links ---------- */
.register-section a,
.login-password a {
    color: #4f46e5;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color .15s ease;
}
.register-section a:hover,
.login-password a:hover { color: #7c3aed; text-decoration: underline; }

.pb-2, .pt-2 { padding: 0 !important; }
.pt-3 { margin-top: 10px; }

.loading-spinner { border-radius: 50%; }

/* ---------- responsive ---------- */
@media (max-width: 480px) {
    .register-section, .login-password { padding: 22px 18px 18px; }
    .p-Title { font-size: 21px !important; }
}