
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root{
    --login-text:#111827;
    --login-muted:#6B7280;
    --login-border:#e5e7eb;
    --login-bg:#f5f9ff;
}

*{box-sizing:border-box}

body.login-page{
    margin:0;
    min-height:100vh;
    font-family:'Poppins',Arial,sans-serif;
    color:var(--login-text);
    background:#f5f9ff;
}

.login-page a{
    color:inherit;
    text-decoration:none;
}

.login-header{
    height:92px;
    padding:0 32px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
    position:relative;
    z-index:5;
}

.login-brand{
    display:flex;
    align-items:center;
    gap:15px;
    min-width:225px;
}

.login-logo{
    width:58px;
    height:50px;
    object-fit:contain;
    object-position:center;
    display:block;
    flex:none;
    background:#fff;
}

.login-brand-text strong{
    display:block;
    color:#111827;
    font-size:15px;
    line-height:1.2;
    font-weight:700;
}

.login-brand-text span{
    display:block;
    margin-top:3px;
    color:#6B7280;
    font-size:12px;
}

.login-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:25px;
    flex:1;
}

.login-nav a{
    color:#111827;
    font-size:12px;
    font-weight:500;
    white-space:nowrap;
}

.login-nav a:hover{color:#2563EB}

.login-header-btn{
    min-width:88px;
    height:41px;
    border:1px solid #2563EB;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    background:#fff;
    font-size:12px;
    font-weight:600;
    flex:none;
}

.login-header-btn:hover{background:#EEF4FF; color:#2563EB}

.login-main{
    min-height:calc(100vh - 92px);
    position:relative;
    overflow:hidden;
    padding:34px 20px 60px;
    display:flex;
    justify-content:center;
}

.login-main:before,
.login-main:after,
.login-deco{
    content:"";
    position:absolute;
    border-radius:50%;
    border:1px solid #e5e7eb;
    background:rgba(238,244,255,.72);
    pointer-events:none;
}

.login-main:before{
    width:215px;height:215px;
    left:-85px;top:-44px;
}

.login-main:after{
    width:290px;height:290px;
    right:-120px;bottom:-105px;
}

.login-deco{
    width:240px;height:240px;
    left:39%;bottom:-120px;
    background:rgba(238,244,255,.82);
}

.login-shell{
    width:100%;
    max-width:398px;
    position:relative;
    z-index:2;
}

.login-heading{
    text-align:center;
    margin-bottom:23px;
}

.login-heading-icon{
    width:74px;
    height:74px;
    border:1px solid #2563EB;
    border-radius:50%;
    margin:0 auto 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    color:#2563EB;
    background:#EEF4FF;
}

.login-heading h1{
    margin:0;
    font-size:28px;
    line-height:1.25;
    font-weight:700;
    letter-spacing:-.5px;
}

.login-heading p{
    margin:12px auto 0;
    max-width:360px;
    font-size:14px;
    line-height:1.75;
    color:#6B7280;
}

.login-card,
.demo-card{
    background:rgba(255,255,255,.96);
    border:1px solid #e5e7eb;
    border-radius:12px;
}

.login-card{
    padding:27px 30px 25px;
}

.login-field{
    margin-bottom:20px;
}

.login-field label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    font-weight:600;
}

.login-input-wrap{
    height:44px;
    border:1px solid #dbe3ef;
    border-radius:8px;
    display:flex;
    align-items:center;
    background:#fff;
    overflow:hidden;
    transition:.2s;
}

.login-input-wrap:focus-within{
    border-color:#2563EB;
    box-shadow:0 0 0 3px rgba(37,99,235,.10);
}

.login-input-wrap i{
    width:42px;
    text-align:center;
    color:#64748B;
    font-size:14px;
}

.login-input-wrap input{
    border:0;
    outline:0;
    width:100%;
    height:100%;
    padding:0 11px 0 0;
    font-family:inherit;
    font-size:13px;
    color:#6B7280;
    background:transparent;
}

.login-input-wrap input::placeholder{color:#94A3B8}

.login-password-wrap .password-toggle{
    width:42px;
    border:0;
    background:transparent;
    color:#64748B;
    cursor:pointer;
    height:100%;
}

.login-options{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-top:-4px;
    margin-bottom:23px;
    font-size:12px;
}

.login-options label{
    display:flex;
    align-items:center;
    gap:7px;
    margin:0;
    font-weight:400;
}

.login-options input{
    width:15px;
    height:15px;
    margin:0;
    accent-color:#2563EB;
}

.login-forgot{
    text-decoration:underline !important;
    cursor:pointer;
}

.login-submit{
    width:100%;
    height:44px;
    border:1px solid #2563EB;
    border-radius:8px;
    background:#2563EB;
    color:#fff;
    font-family:inherit;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
}

.login-submit:hover{
    background:#1E4ED8;
}

.login-divider{
    display:flex;
    align-items:center;
    gap:13px;
    margin:22px 0 17px;
    color:#475569;
    font-size:12px;
}

.login-divider:before,
.login-divider:after{
    content:"";
    height:1px;
    background:#e5e7eb;
    flex:1;
}

.login-secondary{
    width:100%;
    color:#111827;
    height:44px;
    border:1px solid #dbe3ef;
    border-radius:8px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:600;
}

.login-secondary:hover{background:#f8fafc}

.login-error{
    margin-bottom:16px;
    padding:10px 12px;
    border:1px solid #d2a4a4;
    background:#fff4f4;
    color:#8a3030;
    border-radius:8px;
    font-size:12px;
    line-height:1.5;
}

.login-success{
    margin-bottom:16px;
    padding:10px 12px;
    border:1px solid #a9c9af;
    background:#f3fff5;
    color:#2d6a39;
    border-radius:8px;
    font-size:12px;
    line-height:1.5;
}

.demo-card{
    margin-top:17px;
    overflow:hidden;
}

.demo-title{
    height:53px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 20px;
    border-bottom:1px solid #d8d8d8;
    font-size:13px;
    font-weight:600;
}

.demo-title i{
    font-size:15px;
    color:#2563EB;
}

.demo-row{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:11px 20px;
    font-size:12px;
    border-bottom:1px solid #eef2f7;
}

.demo-row strong{font-weight:600}
.demo-row span{color:#475569}

.demo-note{
    padding:15px 20px 16px;
    font-size:11px;
    line-height:1.6;
    color:#6B7280;
}

.login-back{
    display:block;
    text-align:center;
    margin-top:16px;
    font-size:12px;
    text-decoration:underline !important;
}

@media(max-width:900px){
    .login-nav{gap:15px}
    .login-brand{min-width:195px}
    .login-header{padding:0 20px}
}

@media(max-width:700px){
    .login-header{
        height:auto;
        min-height:76px;
        flex-wrap:wrap;
        gap:12px;
        padding:15px 18px;
    }

    .login-brand{min-width:auto}
    .login-nav{
        order:3;
        width:100%;
        overflow:auto;
        justify-content:flex-start;
        padding-bottom:3px;
    }

    .login-main{
        min-height:calc(100vh - 140px);
        padding-top:30px;
    }

    .login-shell{max-width:430px}
}

@media(max-width:480px){
    .login-header-btn{min-width:80px}
    .login-card{padding:23px 18px}
    .login-heading h1{font-size:25px}
    .login-heading p{font-size:13px}
    .login-main:before{width:150px;height:150px;left:-80px}
    .login-main:after{width:190px;height:190px;right:-100px}
}
