


:root{
    --primary: #65509f;
    --secondary: #bda9e9;
    --primary-rgb: 101,80,159;
    --secondary-rgb: 189,169,233;

    --dark: #111827;
    --light: #f8fafc;
    --border: #e5e7eb;
}

/* =========================
   BODY
========================= */

body.reg-back{
    min-height:100vh;
    background:
        radial-gradient(circle at 20% 10%, rgba(var(--primary-rgb), 0.10), transparent 45%),
        radial-gradient(circle at 80% 90%, rgba(var(--secondary-rgb), 0.08), transparent 50%),
        #f7f9fc;

    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 15px;
    font-family: 'Inter', sans-serif;
}


/* =========================
   SECURITY BOX
========================= */

.security-box{
    background:#f9fafb;
    border:1px solid #e5e7eb;
    border-radius:20px;
    padding:20px;
    margin-top:15px;
    transition:.25s ease;
}

.security-box:hover{
    border-color:var(--primary);
    box-shadow:0 10px 25px rgba(0,0,0,0.04);
}

.security-header{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:18px;
}

.security-icon{
    width:52px;
    height:52px;
    border-radius:16px;
    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    color:#fff;
    flex-shrink:0;
}

.security-header h6{
    margin:0;
    font-size:16px;
    font-weight:700;
    color:#111827;
}

.security-header p{
    margin:4px 0 0;
    color:#6b7280;
    font-size:14px;
}

.turnstile-wrap{
    display:flex;
    justify-content:center;
    overflow:hidden;
    border-radius:14px;
}

/* =========================
   SUCCESS ALERT CARD
========================= */

.modern-alert{
    max-width:420px;
    margin:20px auto;
    padding:28px;
    border-radius:18px;
    text-align:center;
    background:#ffffff;
    box-shadow:0 20px 50px rgba(0,0,0,0.10);
    border:1px solid #e5e7eb;
    font-family:'Inter', sans-serif;
}

/* ICON */
.alert-icon{
    width:54px;
    height:54px;
    margin:0 auto 15px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    font-weight:800;
    color:#fff;
    background:linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow:0 10px 25px rgba(34,197,94,0.25);
}

/* TITLE */
.alert-title{
    font-size:20px;
    font-weight:800;
    color:#111827;
    margin-bottom:10px;
}

/* TEXT */
.alert-text{
    font-size:14px;
    color:#6b7280;
    line-height:1.6;
    margin-bottom:22px;
}

/* BUTTON LINK */
.alert-btn{
    display:inline-block;
    padding:12px 22px;
    border-radius:12px;
    font-weight:700;
    font-size:14px;
    text-decoration:none;
    color:#fff;

    background:linear-gradient(135deg, #6550a0, #5078c8);

    box-shadow:0 12px 25px rgba(101,80,160,0.20);
    transition:all .25s ease;
}

.alert-btn:hover{
    transform:translateY(-2px);
    opacity:0.95;
}

/* OPTIONAL SUCCESS VARIANT */
.modern-alert-success{
    border-top:4px solid #22c55e;
}
/* =========================
   LOGIN PAGE ONLY
========================= */
/* LOGIN PAGE CENTER FIX */

body.reg-back.login-page{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:100vh;
    padding:30px 15px;
}

.login-card{
    margin:auto;
    width:100%;
    max-width:1100px;
    background:#fff;
    border-radius:28px;
    overflow:hidden;
    box-shadow:
        0 30px 80px rgba(15,23,42,0.12);
    display:flex;
    min-height:680px;
    position:relative;
}

/* =========================
   LEFT PANEL
========================= */

.login-left{
    width:42%;
    background:
        linear-gradient(
            180deg,
            var(--primary),
            var(--secondary)
        );
    color:#fff;
    padding:60px 50px;
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:center;
}

.login-shape{
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,0.08);
}

.shape-1{
    width:340px;
    height:340px;
    top:-140px;
    right:-140px;
}

.shape-2{
    width:260px;
    height:260px;
    bottom:-120px;
    left:-100px;
    background:rgba(255,255,255,0.05);
}

/* LOGIN PAGE HEADER LOGO (RIGHT PANEL) */
.login-header{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:15px;
}

/* remove spacing issues */
.login-header .brand-logo{
    width:110px;
    background:#fff;
    padding:8px 12px;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,0.10);
    margin:0;
    display:inline-block;
}

.left-content{
    position:relative;
    z-index:2;
}

.login-badge{
    display:inline-flex;
    align-items:center;
    padding:10px 18px;
    border-radius:999px;
    background:rgba(255,255,255,0.14);
    backdrop-filter:blur(10px);
    font-size:13px;
    font-weight:600;
    margin-bottom:25px;
    letter-spacing:.3px;
}

.left-content h2{
    font-size:42px;
    font-weight:800;
    line-height:1.05;
    margin-bottom:22px;
    letter-spacing:-1px;
}

.left-content p{
    font-size:16px;
    line-height:1.9;
    opacity:.94;
    max-width:420px;
}

/* =========================
   FEATURES
========================= */

.login-features{
    display:flex;
    gap:15px;
    margin-top:40px;
    flex-wrap:wrap;
}

.feature-box{
    background:rgba(255,255,255,0.12);
    border:1px solid rgba(255,255,255,0.10);
    backdrop-filter:blur(10px);
    border-radius:18px;
    padding:18px 20px;
    min-width:120px;
}

.feature-box h4{
    font-size:20px;
    font-weight:800;
    margin-bottom:4px;
    color:#fff;
}

.feature-box span{
    font-size:13px;
    opacity:.85;
}

/* =========================
   RIGHT PANEL
========================= */

.login-right{
    width:58%;
    background:#fff;
    padding:60px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-form-wrap{
    width:100%;
    max-width:420px;
}

.login-title{
    font-size:38px;
    font-weight:800;
    color:var(--dark);
    margin-bottom:10px;
    letter-spacing:-1px;
}

.login-subtitle{
    color:#6b7280;
    margin-bottom:35px;
    font-size:15px;
    line-height:1.7;
}

/* =========================
   FORM
========================= */

.form-label{
    font-weight:600;
    color:#374151;
    margin-bottom:10px;
    font-size:14px;
}

.form-control{
    border-radius:16px;
    border:1px solid var(--border);
    min-height:58px;
    padding:14px 18px;
    font-size:15px;
    transition:all .25s ease;
    box-shadow:none !important;
    background:#fff;
}

.form-control:focus{
    border-color:var(--primary);
    box-shadow:
        0 0 0 4px rgba(var(--primary-rgb), 0.10) !important;
}

/* =========================
   BUTTON
========================= */

.btn-login{
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );
    border:none;
    height:58px;
    border-radius:16px;
    color:#fff;
    font-weight:700;
    font-size:15px;
    width:100%;
    transition:all .25s ease;
    box-shadow:
        0 15px 30px rgba(var(--primary-rgb), 0.18);
}

.btn-login:hover{
    transform:translateY(-2px);
    opacity:.96;
}

/* =========================
   FORGOT PASSWORD
========================= */

.forgot-password a{
    color:var(--primary);
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

/* =========================
   LOGIN LINK
========================= */

.login-link{
    text-align:center;
    margin-top:28px;
    font-size:15px;
    color:#6b7280;
}

.login-link a{
    color:var(--primary);
    font-weight:700;
    text-decoration:none;
}

/* =========================
   ALERT
========================= */

.alert{
    border-radius:16px;
    border:none;
    padding:16px 18px;
    margin-bottom:24px;
}

/* =========================
   CARD (YOUR OLD STRUCTURE)
========================= */

.register-card{
    width:100%;
    max-width:1100px;
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    display:flex;
    min-height:650px;
    box-shadow:0 20px 55px rgba(0,0,0,0.12);
}

/* =========================
   LEFT PANEL
========================= */

.register-left{
    width:40%;
    background:linear-gradient(180deg, var(--primary), var(--secondary));
    color:#fff;
    padding:50px;
    position:relative;
    overflow:hidden;
}

.register-left::before{
    content:'';
    position:absolute;
    width:340px;
    height:340px;
    background:rgba(255,255,255,0.08);
    border-radius:50%;
    top:-120px;
    right:-120px;
}

.register-left::after{
    content:'';
    position:absolute;
    width:260px;
    height:260px;
    background:rgba(255,255,255,0.05);
    border-radius:50%;
    bottom:-120px;
    left:-100px;
}

.brand-logo{
    width:160px;
    margin-bottom:35px;
    position:relative;
    z-index:2;

    background:#fff;
    padding:14px 20px;
    border-radius:18px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.12);

    display:inline-block;
}

.left-content{
    position:relative;
    z-index:2;
}

.left-content h2{
    font-size:38px;
    font-weight:800;
    line-height:1.2;
    margin-bottom:12px;
}

.left-content p{
    font-size:15px;
    line-height:1.7;
    opacity:0.92;
}

/* =========================
   RIGHT PANEL
========================= */

.register-right{
    width:60%;
    padding:50px;
    background:#fff;
    overflow-y:auto;
}

/* =========================
   TITLES
========================= */

.register-title{
    font-size:30px;
    font-weight:800;
    color:var(--dark);
    margin-bottom:6px;
}

.register-subtitle{
    color:#6b7280;
    margin-bottom:25px;
    font-size:14px;
}

/* =========================
   FORM CONTROLS
========================= */

.form-control,
.form-select{
    border-radius:14px;
    border:1px solid var(--border);
    min-height:52px;
    padding:12px 16px;
    font-size:15px;
    transition:all .2s ease;
    box-shadow:none !important;
}

.form-control:focus,
.form-select:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(var(--primary-rgb), 0.12) !important;
}

/* =========================
   LABELS
========================= */

.form-label{
    font-weight:600;
    color:#374151;
    margin-bottom:8px;
}

/* =========================
   BUTTON (LOGIN BUTTON)
========================= */

.btn-register{
    background:linear-gradient(135deg, var(--primary), var(--secondary));
    border:none;
    height:54px;
    border-radius:14px;
    color:#fff;
    font-weight:700;
    font-size:15px;
    width:100%;
    transition:all .25s ease;
}

.btn-register:hover{
    transform:translateY(-2px);
    opacity:0.95;
}

/* =========================
   ALERT
========================= */

.alert{
    border-radius:14px;
    border:none;
}

/* =========================
   LINKS
========================= */

.login-link{
    text-align:center;
    margin-top:22px;
    font-size:14px;
}

.login-link a{
    color:var(--primary);
    font-weight:700;
    text-decoration:none;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:991px){

    .register-card{
        flex-direction:column;
        min-height:auto;
    }

    .register-left,
    .register-right{
        width:100%;
        padding:35px 25px;
    }

    .left-content h2{
        font-size:28px;
    }
}


/* =========================
   MOBILE
========================= */

@media(max-width:991px){

    .login-card{
        flex-direction:column;
        min-height:auto;
    }

    .login-left,
    .login-right{
        width:100%;
    }

    .login-left{
        padding:45px 30px;
    }

    .login-right{
        padding:40px 25px;
    }

    .left-content h2{
        font-size:38px;
    }

    .login-title{
        font-size:32px;
    }

    .login-features{
        gap:12px;
    }

    .feature-box{
        flex:1;
        min-width:unset;
    }
}

@media(max-width:576px){

    .login-card{
        border-radius:22px;
    }

    .login-left{
        padding:40px 25px;
    }

    .login-right{
        padding:35px 20px;
    }

    .left-content h2{
        font-size:32px;
    }

    .left-content p{
        font-size:14px;
    }

    .login-title{
        font-size:28px;
    }

    .feature-box{
        padding:16px;
    }

    .feature-box h4{
        font-size:17px;
    }
}