
/* ==========================================================
   Insurance CRM SaaS - Premium Login
   Version: 1.0
   ========================================================== */

:root{
    --bg:#07111F;
    --bg2:#0D1B33;
    --primary:#2563EB;
    --accent:#06B6D4;
    --text:#FFFFFF;
    --muted:#9CA3AF;
    --glass:rgba(255,255,255,.08);
    --border:rgba(255,255,255,.15);
    --shadow:0 20px 60px rgba(0,0,0,.35);
    --radius:22px;
    --transition:.35s ease;
}

*{margin:0;padding:0;box-sizing:border-box}

html,body{
    width:100%;
    height:100%;
    font-family:'Inter',sans-serif;
    background:linear-gradient(135deg,var(--bg),var(--bg2));
    color:var(--text);
    overflow-x:hidden;
}

body{
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-wrapper{
    width:100%;
    min-height:100vh;
    position:relative;
    overflow:hidden;
}

.background-wrapper{
    position:absolute;
    inset:0;
    overflow:hidden;
}

.gradient{
    position:absolute;
    border-radius:50%;
    filter:blur(90px);
    animation:float 12s ease-in-out infinite;
}

.gradient-1{
    width:420px;
    height:420px;
    background:#2563EB;
    left:-120px;
    top:-120px;
}

.gradient-2{
    width:360px;
    height:360px;
    background:#06B6D4;
    right:-80px;
    bottom:-100px;
    animation-delay:2s;
}

.gradient-3{
    width:260px;
    height:260px;
    background:#4F46E5;
    top:40%;
    left:45%;
    animation-delay:4s;
}

.grid-overlay{
    position:absolute;
    inset:0;
    background-image:
      linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
      linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
    background-size:40px 40px;
}

.login-container{
    position:relative;
    z-index:5;
    max-width:1320px;
    min-height:100vh;
    margin:auto;
    display:grid;
    grid-template-columns:1fr 520px;
    gap:60px;
    align-items:center;
    padding:50px;
}

.login-left h1{
    font-size:3.2rem;
    line-height:1.2;
    margin:25px 0;
}

.login-left p{
    color:var(--muted);
    line-height:1.8;
    max-width:600px;
}

.brand-area{
    display:flex;
    align-items:center;
    gap:15px;
}

.brand-logo,
.login-logo{
    width:180px;
}

.brand-name{
    font-size:1.35rem;
    font-weight:700;
}

.hero-badge{
    display:inline-block;
    margin-top:40px;
    padding:10px 18px;
    border-radius:999px;
    background:rgba(37,99,235,.18);
    border:1px solid rgba(37,99,235,.4);
    font-size:.8rem;
    letter-spacing:2px;
}

.feature-list{
    margin-top:50px;
}

.feature-item{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:18px;
}

.feature-item i{
    color:var(--accent);
}

.login-card{
    position:relative;
    background:var(--glass);
    backdrop-filter:blur(25px);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:45px;
    box-shadow:var(--shadow);
}

.login-header{
    text-align:center;
    margin-bottom:35px;
}

.login-header h2{
    margin-top:20px;
    font-size:2rem;
}

.login-header p{
    margin-top:10px;
    color:var(--muted);
}

.input-group{
    margin-bottom:24px;
}

.input-group label{
    display:block;
    margin-bottom:10px;
    font-weight:600;
}

.input-box{
    display:flex;
    align-items:center;
    background:rgba(255,255,255,.06);
    border:1px solid var(--border);
    border-radius:14px;
    padding:0 16px;
}

.input-box i{
    color:#9ca3af;
}

.input-box input{
    flex:1;
    height:56px;
    border:none;
    outline:none;
    background:transparent;
    color:#fff;
    padding:0 14px;
    font-size:15px;
}

.password-toggle{
    border:none;
    background:none;
    color:#9ca3af;
    cursor:pointer;
}

.login-options{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    font-size:.9rem;
}

.login-options a{
    color:var(--accent);
    text-decoration:none;
}

.login-btn{
    width:100%;
    height:56px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:var(--transition);
}

.login-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 15px 35px rgba(37,99,235,.35);
}

.login-divider{
    margin:30px 0;
    text-align:center;
    color:var(--muted);
    font-size:.9rem;
}

.security-info{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    color:var(--muted);
}

.security-info div i{
    color:var(--accent);
    margin-right:10px;
}

.login-footer{
    margin-top:30px;
    text-align:center;
    color:var(--muted);
}

.loading-overlay{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(7,17,31,.8);
    backdrop-filter:blur(10px);
    z-index:9999;
}

.loading-box{
    background:var(--glass);
    border:1px solid var(--border);
    border-radius:20px;
    padding:40px;
    text-align:center;
}

.spinner{
    width:55px;
    height:55px;
    margin:0 auto 20px;
    border:4px solid rgba(255,255,255,.2);
    border-top-color:#fff;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

.particles span{
    position:absolute;
    width:8px;
    height:8px;
    background:#fff;
    opacity:.15;
    border-radius:50%;
    animation:float 10s infinite;
}

@keyframes spin{
    to{transform:rotate(360deg);}
}

@keyframes float{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-25px)}
}

@media(max-width:992px){
.login-container{
grid-template-columns:1fr;
padding:30px;
}
.login-left{
display:none;
}
.login-card{
max-width:520px;
margin:auto;
}
}

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

@media (max-width:768px){

    html,
    body{

        width:100%;

        height:100%;

        margin:0;

        padding:0;

        overflow:hidden;

    }

    body{

        display:flex;

        align-items:center;

        justify-content:center;

    }

    .login-wrapper{

        width:100%;

        height:100vh;

        min-height:100vh;

        display:flex;

        align-items:center;

        justify-content:center;

        padding:20px;

        box-sizing:border-box;

        overflow:hidden;

    }

    .login-container{

        width:100%;

        max-width:420px;

        grid-template-columns:1fr;

        padding:0;

        gap:0;

        min-height:auto;

    }

    .login-left{

        display:none;

    }

    .login-right{

        width:100%;

        display:flex;

        justify-content:center;

    }

    .login-card{

        width:100%;

        max-width:420px;

        padding:30px 24px;

        border-radius:18px;

        margin:0;

        box-sizing:border-box;

    }

    .login-logo{

        width:120px;

        margin:0 auto 5px;

    }

    .login-header{

        margin-bottom:25px;

    }

    .login-header h2{

        font-size:28px;

    }

    .login-header p{

        font-size:14px;

        line-height:1.6;

    }

    .input-group{

        margin-bottom:18px;

    }

    .input-box{

        height:52px;

    }

    .input-box input{

        font-size:15px;

    }

    .login-options{

        flex-direction:column;

        align-items:flex-start;

        gap:12px;

        margin-bottom:22px;

    }

    .login-btn{

        height:52px;

        font-size:15px;

    }

    .security-info{

        display:none;

    }

    .login-divider{

        margin:20px 0;

        font-size:12px;

    }

    .login-footer{

        margin-top:20px;

        font-size:13px;

    }

}