/* =====================================================
   PREMIUM AUTH PAGES  (login / register / forgot / reset / verify)
   Shared, self-contained. Everything scoped under .auth-premium
   so no other page on the site is affected.
   ===================================================== */

.auth-premium {
    position: relative;
    min-height: 84vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 16px;
    overflow: hidden;
    perspective: 1400px;
    background:
        radial-gradient(1100px 560px at 8% -12%, rgba(129,42,127,0.10), transparent 60%),
        radial-gradient(1000px 520px at 112% 8%, rgba(67,212,119,0.12), transparent 55%),
        linear-gradient(160deg, #fbf7fb 0%, #f3f9f3 55%, #fdf7ef 100%);
}

/* floating 3D orbs */
.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(42px);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}
.auth-orb-1 { width: 320px; height: 320px; top: -90px; left: -60px;
    background: radial-gradient(circle at 30% 30%, #bd44ba, #812A7F);
    animation: authOrbFloat 14s ease-in-out infinite; }
.auth-orb-2 { width: 260px; height: 260px; bottom: -80px; right: -50px;
    background: radial-gradient(circle at 30% 30%, #6be29a, #2e8b57);
    animation: authOrbFloat 18s ease-in-out infinite reverse; }
.auth-orb-3 { width: 170px; height: 170px; top: 42%; right: 13%;
    background: radial-gradient(circle at 30% 30%, #e7c778, #C8A951);
    animation: authOrbFloat 12s ease-in-out infinite; }
@keyframes authOrbFloat {
    0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
    50%     { transform: translate3d(0,-36px,0) rotate(20deg); }
}

/* glassmorphism card */
.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: rgba(255,255,255,0.74);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(60,20,60,0.18), 0 4px 14px rgba(0,0,0,0.05);
    animation: authCardIn 0.8s cubic-bezier(0.2,0.7,0.2,1) both;
    transform-style: preserve-3d;
    transition: transform 0.25s ease-out;
}
@keyframes authCardIn {
    from { opacity: 0; transform: perspective(1200px) rotateX(7deg) translateY(42px); }
    to   { opacity: 1; transform: perspective(1200px) rotateX(0) translateY(0); }
}

/* visual (image) panel */
.auth-visual {
    position: relative;
    width: 45%;
    min-height: 540px;
    overflow: hidden;
    flex-shrink: 0;
}
.auth-visual img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: authSlowZoom 18s ease-in-out infinite alternate;
}
@keyframes authSlowZoom { from { transform: scale(1.05); } to { transform: scale(1.16); } }
.auth-visual::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,46,56,0.10) 0%, rgba(129,42,127,0.60) 100%);
}
.auth-visual-content {
    position: absolute; z-index: 2;
    left: 0; right: 0; bottom: 0;
    padding: 36px 30px;
    color: #fff;
}
.auth-brand-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 30px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.32);
    backdrop-filter: blur(6px);
    font-size: 13px; font-weight: 600;
    margin-bottom: 16px;
}
.auth-visual-content h2 { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; color: #fff; }
.auth-visual-content p  { font-size: 14px; line-height: 1.6; opacity: 0.92; margin: 0; }

/* form panel */
.auth-form-panel {
    width: 55%;
    padding: 44px 44px;
    display: flex; flex-direction: column; justify-content: center;
}
.auth-form-panel h1 { font-size: 24px !important; font-weight: 800; color: #1a1a2e; margin: 0 0 6px; }
.auth-sub { color: #8a8a96; font-size: 14px; margin-bottom: 24px; }

/* inputs — modern rounded corners + soft shadow */
.auth-premium .form-group { margin-bottom: 18px; }
.auth-premium .input-label { font-weight: 600; color: #3a3a4a; font-size: 13px; margin-bottom: 7px; display: block; }
.auth-premium .form-control {
    height: 52px;
    border-radius: 14px;
    border: 1.5px solid #e7e7f0;
    background: #fff;
    font-size: 15px;
    padding: 10px 16px;
    box-shadow: 0 2px 8px rgba(30,20,50,0.05);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.auth-premium .form-control:hover { border-color: #d9d3e6; }
.auth-premium .form-control:focus {
    border-color: #812A7F;
    box-shadow: 0 0 0 4px rgba(129,42,127,0.12), 0 4px 14px rgba(129,42,127,0.10);
}

/* select2 → match the input look */
.auth-premium .select2-container { width: 100% !important; }
.auth-premium .select2-container--default .select2-selection--single {
    height: 52px !important; border-radius: 14px;
    border: 1.5px solid #e7e7f0;
    display: flex; align-items: center; padding: 0 8px;
    box-shadow: 0 2px 8px rgba(30,20,50,0.05);
}
.auth-premium .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal; padding: 0 6px; color: #1a1a2e; font-size: 15px;
}
.auth-premium .select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; }
.auth-premium .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #812A7F; box-shadow: 0 0 0 4px rgba(129,42,127,0.12);
}

/* input-group (password eye toggle on reset page) */
.auth-premium .input-group .form-control {
    border-top-right-radius: 0; border-bottom-right-radius: 0;
}
.auth-premium .input-group-text {
    border: 1.5px solid #e7e7f0; border-left: none;
    border-top-right-radius: 14px; border-bottom-right-radius: 14px;
    background: #faf9fc; color: #812A7F;
}

/* OTP / verification code input — large, spaced, centered */
.auth-premium #code {
    text-align: center;
    letter-spacing: 8px;
    font-size: 20px;
    font-weight: 700;
}

/* primary button (brand purple, depth + shine) */
.auth-premium .btn-primary.btn-block {
    position: relative; overflow: hidden;
    height: 52px; border-radius: 14px;
    font-weight: 700; font-size: 15px; letter-spacing: 0.3px;
    background: linear-gradient(135deg, #812A7F 0%, #a6339e 100%);
    border: none;
    box-shadow: 0 10px 24px rgba(129,42,127,0.32);
    transition: transform 0.2s, box-shadow 0.2s;
}
.auth-premium .btn-primary.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(129,42,127,0.42);
}
.auth-premium .btn-primary.btn-block::after {
    content: ""; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s;
}
.auth-premium .btn-primary.btn-block:hover::after { left: 130%; }

/* email / mobile segmented toggle */
.auth-premium .wizard-custom-radio { background: #f4f4f8; border-radius: 12px; padding: 5px; gap: 5px; }
.auth-premium .wizard-custom-radio-item label {
    border-radius: 9px; text-align: center; font-weight: 600; margin: 0; transition: all 0.2s;
}
.auth-premium .wizard-custom-radio-item input:checked + label {
    background: #fff; color: #812A7F; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* terms checkbox (register) */
.auth-premium .custom-control { margin: 4px 0 6px; }
.auth-premium .custom-control-label { color: #555; }
.auth-premium .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #812A7F; border-color: #812A7F;
}

/* toggle / divider / links */
.login-toggle-link { color: #812A7F; cursor: pointer; font-weight: 700; font-size: 13.5px; transition: color 0.2s; }
.login-toggle-link:hover { color: #a6339e; text-decoration: underline; }
.login-section { display: block; }
.login-section.d-none { display: none !important; }
.login-or-divider { display: flex; align-items: center; margin: 22px 0; }
.login-or-divider::before, .login-or-divider::after { content: ''; flex: 1; border-bottom: 1px solid #e5e5ee; }
.login-or-divider span { padding: 0 12px; color: #9a9aa6; font-size: 13px; font-weight: 500; }
.auth-alt-row { margin-top: 20px; text-align: center; font-size: 14px; color: #555; }
.auth-alt-row a, .auth-signup-row a { color: #812A7F; font-weight: 700; }
.auth-signup-row { margin-top: 20px; text-align: center; font-size: 14px; color: #555; }
.auth-premium a.text-secondary { color: #812A7F !important; }

/* responsive */
@media (max-width: 767px) {
    .auth-premium { padding: 22px 14px; min-height: auto; }
    .auth-card { flex-direction: column; max-width: 440px; border-radius: 22px; }
    .auth-visual { width: 100%; min-height: 150px; height: 160px; }
    .auth-visual-content { padding: 16px 18px; }
    .auth-visual-content h2 { font-size: 19px; margin-bottom: 2px; }
    .auth-visual-content p { display: none; }
    .auth-form-panel { width: 100%; padding: 26px 22px 30px; }
    .auth-form-panel h1 { font-size: 21px !important; }
}
