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

body.auth-page{
    min-height:100vh;
    font-family:'Poppins', Arial, Helvetica, sans-serif;
    background:#d6e4ff;
    color:#0f172a;
    -webkit-font-smoothing:antialiased;
}

.auth-page-inner {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
}

/* Scale stage: same desktop view, shrinks as screen shrinks */
.auth-scale-frame{
    width:1100px;
    max-width:100%;
    overflow:hidden;
}

.auth-scale-stage{
    width:1100px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:18px;
    transform-origin:top left;
}

/* Logo inside right form panel (above ADMIN WORKSPACE) */
.auth-brand{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    margin: 0 0 10px;
    padding:0;
}

.auth-brand-logo{
    display:block;
    height:56px;
    width:auto;
    max-width:260px;
    object-fit:contain;
}

.auth-brand-fallback{
    font-size:26px;
    font-weight:800;
    letter-spacing:0.04em;
    color:#0b61c9;
}

/* Main container (red-box size) */
.auth-shell{
    width:1100px;
    min-height:620px;
    display:grid;
    grid-template-columns:1.05fr 0.95fr;
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    border:1px solid #e8eef5;
}

.auth-shell-left{
    position:relative;
    background:#0b61c9;
    min-height:620px;
}

.auth-hero-image{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.auth-shell-right{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:42px 52px 42px 56px;
    background:#fff;
    min-width:0;
}

.auth-form-heading{
    margin-bottom:26px;
}

.auth-eyebrow{
    margin:0 0 10px;
    font-size:12px;
    font-weight:700;
    letter-spacing:0.12em;
    text-transform:uppercase;
    color:#608ADF;
}

.auth-form-heading h2 {
    margin: 0 0 8px;
    font-size: 35px;
    font-weight: 700;
    color: #101C39;
    line-height: 1.15;
}

.auth-form-heading .auth-sub,
.auth-muted{
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #7B8AA6;
    line-height: 1.45;
}

.auth-form-group{
    margin-bottom:18px;
}

.auth-form-group label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    font-weight:600;
    color:#1e293b;
}

.auth-form-group input{
    width:100%;
    height:48px;
    padding:12px 14px;
    border:1px solid #d7dee8;
    border-radius:10px;
    outline:none;
    font-size:14px;
    font-family:inherit;
    color:#0f172a;
    background:#fff;
    transition:border-color .15s ease, box-shadow .15s ease;
}

.auth-form-group input::placeholder{
    color:#94a3b8;
}

.auth-form-group input:focus{
    border-color:#0b61c9;
    box-shadow:0 0 0 3px rgba(11, 97, 201, 0.12);
}

.password-wrap{
    position:relative;
}

.password-wrap input{
    padding-right:44px;
}

.password-toggle{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    border:0;
    background:transparent;
    cursor:pointer;
    padding:4px;
    color:#64748b;
    line-height:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.password-toggle:hover{
    color:#0b61c9;
}

.password-toggle .icon-hide{
    display:none;
}

.password-toggle.is-visible .icon-show{
    display:none;
}

.password-toggle.is-visible .icon-hide{
    display:inline-block;
}

.auth-forgot-row{
    text-align:right;
    margin:-4px 0 18px;
}

.auth-forgot-row a,
.auth-back-link{
    color:#0b61c9;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
}

.auth-forgot-row a:hover,
.auth-back-link:hover{
    text-decoration:none;
    opacity:0.85;
}

.auth-back-link{
    display:block;
    text-align:center;
    margin-top:14px;
    color:#64748b;
    font-weight:500;
}

.auth-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    height:48px;
    border:none;
    border-radius:10px;
    background:#0b61c9;
    color:#fff;
    font-size:15px;
    font-weight:700;
    font-family:inherit;
    cursor:pointer;
    text-decoration:none;
    transition:opacity .15s ease, transform .15s ease;
}

.auth-btn-arrow{
    font-size:18px;
    line-height:1;
    font-weight:600;
}

.auth-btn:hover{
    opacity:0.95;
    text-decoration:none;
    color:#fff;
}

.auth-btn:active{
    transform:translateY(1px);
}

.auth-alert{
    padding:12px 14px;
    border-radius:10px;
    margin-bottom:16px;
    font-size:13px;
    font-weight:500;
    line-height:1.4;
}

.auth-alert--success{
    background:#dcfce7;
    color:#166534;
}

.auth-alert--error{
    background:#fee2e2;
    color:#991b1b;
}

.auth-error-text{
    color:#dc2626;
    font-size:12px;
    margin-top:6px;
    font-weight:500;
}

.auth-footer{
    width:100%;
    text-align:center;
    padding-top:4px;
}

.auth-footer-brand{
    margin:0;
    font-size:13px;
    font-weight:600;
    color:#64748b;
}

.auth-help{
    margin:14px 0 0;
    text-align:center;
    font-size:12px;
    font-weight:500;
    color:#94a3b8;
}

.auth-divider{
    margin:22px 0 0;
    border:0;
    border-top:1px solid #e8eef5;
    width:100%;
}

/* ≤500px: hide left image, only login form */
@media (max-width: 500px){
    .auth-page-inner{
        padding:16px 14px;
        justify-content:center;
        min-height:100vh;
        min-height:100dvh;
    }

    .auth-scale-frame,
    .auth-scale-stage{
        width:100%;
        max-width:100%;
        height:auto !important;
        overflow:visible;
        transform:none !important;
    }

    .auth-scale-stage{
        gap:14px;
    }

    .auth-brand{
        margin:0 0 18px;
        padding:0;
    }

    .auth-brand-logo{
        height:48px;
        max-width:200px;
    }

    .auth-shell{
        width:100%;
        min-height:0;
        grid-template-columns:1fr;
        border-radius:16px;
    }

    .auth-shell-left{
        display:none;
    }

    .auth-shell-right{
        padding:24px 18px 28px;
    }

    .auth-form-heading h2{
        font-size:28px;
    }
}
