*{
    box-sizing:border-box;
}

html,
body{
    width:100%;
    min-height:100%;
}

body{
    margin:0;
    padding:20px;
    background:#f4f8ff;
    font-family:'Poppins',Arial,sans-serif;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:100vh;
    overflow-y:auto;
}

/* LOGIN PAGE */

.login-container{
    width:100%;
    max-width:920px;
    min-height:480px;
    background:#ffffff;
    border-radius:18px;
    overflow:hidden;
    display:flex;
    box-shadow:0 24px 60px rgba(22,136,236,.18);
}

.info-section{
    width:50%;
    background:linear-gradient(145deg,#0d84f3,#1688ec);
    color:#ffffff;
    padding:30px 38px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.info-content{
    width:100%;
    max-width:420px;
    text-align:center;
}

.logo-top{
    width:205px;
    max-width:100%;
    display:block;
    margin:0 auto 18px;
}

.info-text{
    margin:0 0 20px;
    font-size:13.5px;
    line-height:1.65;
    font-weight:400;
}

.contact-text{
    margin-bottom:0;
}

.info-text strong{
    display:inline-block;
    margin-top:6px;
    font-size:14.5px;
    font-weight:700;
}

.login-section{
    width:50%;
    padding:54px 50px 32px;
    background:#ffffff;
}

.login-title{
    margin:0 0 24px;
    text-align:center;
    font-size:26px;
    font-weight:700;
    color:#0f172a;
}

.login-section form{
    width:100%;
}

/* FORM */

.input-box{
    margin-bottom:16px;
}

.input-wrap{
    position:relative;
    width:100%;
}

.input-icon{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    color:#1688ec;
    font-size:15px;
    z-index:10;
    pointer-events:none;
}

.input-wrap input{
    width:100%;
    height:48px;
    border-radius:12px;
    border:1px solid #dbeafe;
    background:#ffffff;
    padding:0 52px 0 50px;
    font-size:14px;
    color:#111827;
    outline:none;
    transition:all .2s ease;
}

.input-wrap input::placeholder{
    color:#9ca3af;
}

.input-wrap input:focus{
    border-color:#1688ec;
    box-shadow:0 0 0 4px rgba(22,136,236,.14);
}

.password-toggle{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    width:34px;
    height:34px;
    border:none;
    background:transparent;
    color:#1688ec;
    font-size:18px;
    cursor:pointer;
    display:grid;
    place-items:center;
    padding:0;
}

.password-toggle:focus{
    outline:none;
}

.login-btn{
    width:100%;
    height:48px;
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg,#1688ec,#0d84f3);
    color:#ffffff;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    box-shadow:0 14px 28px rgba(22,136,236,.26);
    transition:.25s ease;
}

.login-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 18px 34px rgba(22,136,236,.32);
}

.login-btn:active{
    transform:translateY(1px);
}

.login-btn:disabled{
    opacity:.9;
    cursor:not-allowed;
}

.login-btn.is-loading{
    background:#1688ec;
}

.spinner{
    width:17px;
    height:17px;
    border:2px solid rgba(255,255,255,.4);
    border-top-color:#ffffff;
    border-radius:50%;
    animation:spin .8s linear infinite;
}

.d-none{
    display:none!important;
}

/* SECURITY */

.admin-secure-login .login-section{
    position:relative;
}

.admin-security-badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin:0 auto 12px;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(22,136,236,.08);
    color:#1688ec;
    font-size:12px;
    font-weight:800;
}

.admin-security-note{
    width:100%;
    display:flex;
    align-items:flex-start;
    gap:9px;
    padding:12px 14px;
    margin:0 0 16px;
    border-radius:14px;
    border:1px solid rgba(22,136,236,.15);
    background:rgba(22,136,236,.055);
    color:#475569;
    font-size:13px;
    line-height:1.5;
}

.admin-security-note i{
    color:#1688ec;
    margin-top:2px;
}

.admin-attempt-box,
.admin-lock-box{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:13px 14px;
    margin:0 0 16px;
    border-radius:16px;
}

.admin-attempt-box span,
.admin-lock-box span{
    display:block;
    color:#64748b;
    font-size:12px;
    line-height:1.4;
}

.admin-attempt-box strong,
.admin-lock-box strong{
    display:block;
    color:#111827;
    font-size:14px;
    font-weight:900;
    margin-top:2px;
}

.admin-attempt-box.warning{
    background:#fffbeb;
    border:1px solid #fde68a;
}

.admin-attempt-box.warning i{
    color:#d97706;
}

.admin-attempt-box.danger,
.admin-lock-box{
    background:#fef2f2;
    border:1px solid #fecaca;
}

.admin-attempt-box.danger i,
.admin-lock-box i{
    color:#dc2626;
}

.admin-lock-box{
    justify-content:flex-start;
}

.admin-lock-box > i{
    width:38px;
    height:38px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:#ffffff;
    flex:0 0 auto;
}

/* FOOTER */

.footer-text{
    margin-top:22px;
    text-align:center;
    font-size:12px;
    color:#7c7a85;
}

.footer-text strong{
    color:#1688ec;
}

/* TOAST */

.agent-toast-wrap{
    position:fixed;
    top:22px;
    right:22px;
    width:min(390px,calc(100% - 32px));
    display:flex;
    flex-direction:column;
    gap:12px;
    z-index:99999;
}

.agent-toast{
    width:100%;
    min-height:70px;
    background:#ffffff;
    border-radius:16px;
    padding:14px;
    display:flex;
    align-items:flex-start;
    gap:12px;
    box-shadow:0 18px 40px rgba(15,23,42,.18);
    animation:toastSlideIn .35s ease forwards;
    border-left:5px solid #1688ec;
}

.agent-toast.success{
    border-left-color:#16a34a;
}

.agent-toast.error{
    border-left-color:#dc2626;
}

.agent-toast.warning{
    border-left-color:#d97706;
}

.agent-toast.hide{
    animation:toastSlideOut .3s ease forwards;
}

.agent-toast-icon{
    width:34px;
    height:34px;
    border-radius:999px;
    display:grid;
    place-items:center;
    flex:0 0 34px;
    font-size:16px;
}

.agent-toast.success .agent-toast-icon{
    background:#dcfce7;
    color:#16a34a;
}

.agent-toast.error .agent-toast-icon{
    background:#fee2e2;
    color:#dc2626;
}

.agent-toast.warning .agent-toast-icon{
    background:rgba(245,158,11,.14);
    color:#d97706;
}

.agent-toast-content{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:3px;
    padding-top:1px;
}

.agent-toast-content strong{
    font-size:13.5px;
    line-height:1.2;
    color:#111827;
}

.agent-toast-content span{
    font-size:13px;
    line-height:1.45;
    color:#4b5563;
}

.agent-toast-close{
    width:28px;
    height:28px;
    border:none;
    border-radius:999px;
    background:#f3f4f6;
    color:#6b7280;
    cursor:pointer;
    display:grid;
    place-items:center;
    flex:0 0 28px;
}

.agent-toast-close:hover{
    background:#e5e7eb;
    color:#111827;
}

/* ANIMATIONS */

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

@keyframes toastSlideIn{
    from{
        opacity:0;
        transform:translateX(24px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes toastSlideOut{
    from{
        opacity:1;
        transform:translateX(0);
    }

    to{
        opacity:0;
        transform:translateX(24px);
    }
}

/* RESPONSIVE */

@media(max-width:768px){
    body{
        padding:18px;
        align-items:flex-start;
    }

    .login-container{
        flex-direction:column;
        max-width:520px;
        min-height:auto;
    }

    .info-section,
    .login-section{
        width:100%;
    }

    .info-section{
        padding:30px 28px;
    }

    .logo-top{
        width:190px;
        margin-bottom:14px;
    }

    .info-text{
        margin-bottom:18px;
    }

    .login-section{
        padding:32px 28px 34px;
    }

    .agent-toast-wrap{
        top:16px;
        right:16px;
        left:16px;
        width:auto;
    }
}

@media(max-width:575px){
    .admin-security-note,
    .admin-attempt-box,
    .admin-lock-box{
        padding:11px 12px;
        border-radius:14px;
    }

    .admin-security-badge{
        font-size:11.5px;
    }
}

@media(max-width:480px){
    body{
        padding:0;
        background:#ffffff;
    }

    .login-container{
        border-radius:0;
        box-shadow:none;
        margin:0;
    }

    .info-section{
        padding:24px 22px;
    }

    .logo-top{
        width:175px;
        margin-bottom:12px;
    }

    .info-text{
        font-size:13px;
        line-height:1.65;
        margin-bottom:16px;
    }

    .info-text strong{
        font-size:14px;
    }

    .login-section{
        padding:30px 22px 32px;
    }

    .login-title{
        font-size:25px;
    }
}

.login-btn:disabled{
    background:#cbd5e1 !important;
    color:#64748b !important;
    cursor:not-allowed;
    box-shadow:none !important;
    transform:none !important;
    opacity:1;
}

.login-btn:disabled:hover{
    transform:none;
    box-shadow:none;
}