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

:root{
    --orange:var(--primary,var(--primary));
    --black:#111;
    --text:#171717;
    --muted:#6f6f6f;
    --border:#dedede;
    --danger:#c62828;
    --success:#16794a
}

html,
body{
    min-height:100%
}

body{
    min-height:100vh;
    font-family:Inter,sans-serif;
    color:var(--text);
    background:#fff
}

button,
input{
    font:inherit
}

.page{
    min-height:100vh;
    display:grid;
    grid-template-columns:minmax(480px,38%) 1fr
}

.login-panel{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    padding:30px 44px;
    background:#fff
}

.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px
}

.brand{
    display:inline-flex;
    align-items:center;
    text-decoration:none
}

.brand-logo{
    display:block;
    width:auto;
    max-width:190px;
    height:auto;
    max-height:44px;
    object-fit:contain;
    object-position:left center
}

.login-wrap{
    width:100%;
    max-width:430px;
    margin:auto;
    padding:56px 0 70px
}

.login-header{
    margin-bottom:26px
}

.login-header h1{
    margin-bottom:8px;
    font:700 31px/1.1 "Inter Tight",sans-serif;
    letter-spacing:-.04em
}

.login-header p{
    color:var(--muted);
    font-size:14px;
    line-height:1.6
}

.message{
    margin-bottom:16px;
    padding:11px 12px;
    border-radius:5px;
    font-size:12px;
    line-height:1.55
}

.message.error{
    color:var(--danger);
    border:1px solid #efc3c3;
    background:#fff8f8
}

.message.success{
    color:var(--success);
    border:1px solid #b8dfcc;
    background:#f6fffa
}

.field{
    margin-bottom:16px
}

.field label{
    display:block;
    margin-bottom:7px;
    color:#343434;
    font-size:16px;
    font-weight:600
}

.field input{
    width:100%;
    height:45px;
    border:1px solid var(--border);
    border-radius:10px;
    outline:none;
    padding:0 13px;
    color:#171717;
    background:#fff;
    font-size:13px
}

.field input::placeholder{
    color:#9a9a9a
}

.field input:focus{
    border-color:var(--orange);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 17%,transparent)
}

.password-wrap{
    position:relative
}

.password-wrap input{
    padding-right:62px
}

.password-wrap button{
    position:absolute;
    right:6px;
    top:6px;
    height:33px;
    border:0;
    border-radius:7px;
    padding:0 10px;
    color:#555;
    background:#f2f2f2;
    font-size:11px;
    cursor:pointer
}

.password-wrap button:hover{
    color:#111;
    background:#e9e9e9
}

.form-links{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin:0 0 24px
}

.remember{
    display:flex;
    align-items:center;
    gap:8px;
    color:#666;
    font-size:12px;
    cursor:pointer
}

.remember input{
    width:15px;
    height:15px;
    accent-color:var(--orange)
}

.form-links a,
.text-link{
    color:#222;
    font-size:14px;
    font-weight:600;
    text-decoration:underline;
    text-underline-offset:2px
}

.submit-btn{
    width:100%;
    height:50px;
    border:0;
    border-radius:10px;
    color:#fff;
    background:var(--black);
    font-size:15px;
    font-weight:600;
    cursor:pointer
}

.submit-btn:hover{
    background:#000
}

.footer-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
    margin-top:22px;
    font-size:12px
}

.footer-links a{
    color:#555
}

.visual-panel{
    position:relative;
    min-height:100vh;
    overflow:hidden;
    color:var(--login-text,#111);
    background:var(--login-bg,var(--orange))
}

.visual-panel.mode-image{
    background-color:var(--login-bg,var(--orange));
    background-image:linear-gradient(rgba(0,0,0,.08),rgba(0,0,0,.08)),var(--login-image,none);
    background-position:center;
    background-size:cover
}

.visual-panel.mode-image .shape{display:none}

.login-html-frame{
    position:absolute;
    inset:0;
    z-index:3;
    width:100%;
    height:100%;
    border:0;
    background:var(--login-bg,#fff)
}

.visual-inner{
    position:relative;
    z-index:2;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:62px
}

.visual-inner h2{
    max-width:680px;
    font:700 clamp(52px,6vw,92px)/.95 "Inter Tight",sans-serif;
    letter-spacing:-.065em;
    color:inherit
}

.visual-inner p{
    max-width:430px;
    color:inherit;
    font-size:15px;
    line-height:1.65
}

.shape{
    position:absolute;
    right:-17%;
    top:50%;
    width:68vw;
    height:68vw;
    max-width:920px;
    max-height:920px;
    min-width:620px;
    min-height:620px;
    transform:translateY(-50%);
    border:2px solid color-mix(in srgb,currentColor 85%,transparent);
    border-radius:50%
}

.shape::before,
.shape::after{
    content:"";
    position:absolute;
    border-radius:50%;
    border:2px solid color-mix(in srgb,currentColor 30%,transparent)
}

.shape::before{
    inset:11%
}

.shape::after{
    inset:23%;
    border-color:color-mix(in srgb,currentColor 16%,transparent)
}

@media(max-width:980px){
    .page{
        grid-template-columns:1fr
    }

    .visual-panel{
        display:none
    }

    .login-panel{
        padding:24px
    }

    .login-wrap{
        max-width:460px
    }
}

@media(max-width:560px){
    .login-panel{
        padding:20px
    }

    .login-wrap{
        padding:48px 0 42px
    }

    .form-links{
        align-items:flex-start
    }

    .brand-logo{
        max-width:165px;
        max-height:40px
    }
}
