:root{
    --mx-orange:#ff781f;
    --mx-orange-dark:#ed6411;
    --mx-ink:#06132d;
    --mx-muted:#6d7788;
    --mx-border:#d9e2ee;
    --mx-bg:#dce5e1;
    --mx-green:#00594e;
    --mx-shadow:0 28px 70px rgba(42,57,78,.18);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body.gilam-auth{
    font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;
    color:var(--mx-ink);
    background:radial-gradient(circle at 50% 5%,rgba(255,255,255,.8),rgba(255,255,255,0) 34%),var(--mx-bg);
    min-height:100vh;
    overflow-x:hidden;
    border-top:3px solid rgba(255,120,31,.22);
}
.top-rule{display:none}
.login-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px 18px;
}
.login-wrap{
    width:min(820px,100%);
    display:grid;
    grid-template-columns:minmax(250px,360px) minmax(300px,442px);
    gap:16px;
    align-items:center;
}
.brand-card,.signin-card,.gilam-reset-shell{
    background:#fff;
    border-radius:11px;
    box-shadow:var(--mx-shadow);
}
.brand-card{
    min-height:410px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:34px 30px;
}
.brand-inner{width:100%;margin-top:8px}
.brand-logo{display:block;max-width:230px;width:72%;height:auto;margin:0 auto 22px}
.brand-title{
    margin:0;
    color:var(--mx-green);
    font-size:21px;
    line-height:1.25;
    font-weight:650;
    letter-spacing:1.35px;
    text-transform:uppercase;
}
.brand-modules{
    margin:16px auto 0;
    max-width:320px;
    color:var(--mx-green);
    font-size:14px;
    line-height:1.45;
    font-weight:400;
}
.signin-card{
    min-height:510px;
    padding:34px 36px 28px;
    display:flex;
    flex-direction:column;
}
.signin-head{display:flex;align-items:center;gap:12px;margin-bottom:0}
.head-icon{
    width:20px;
    height:20px;
    border:3px solid #263247;
    border-radius:6px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
}
.head-icon:after{content:"";width:5px;height:5px;background:#263247;border-radius:50%}
.signin-head h1{font-size:23px;line-height:1.2;font-weight:400;color:#071229;margin:0}
.signin-rule{
    height:2px;
    background:linear-gradient(90deg,var(--mx-orange) 0 38%,#d9d9d9 38% 100%);
    margin:18px 0 34px;
}
.alert-box,.gilam-auth-message{
    display:none;
    border-radius:8px;
    padding:10px 12px;
    margin:-16px 0 18px;
    font-size:12px;
    line-height:1.4;
    border:1px solid transparent;
}
.alert-danger-lite,.gilam-auth-message.error{background:#fff3f0;color:#a83b18;border-color:#ffd2c1}
.gilam-auth-message.error{display:block}
.alert-warning-lite{background:#fff8e6;color:#8a5a00;border-color:#ffe2a8}
.gilam-auth-message.success,.gilam-auth-message.info{display:block;background:#edf8f3;color:#075e46;border-color:#c5e8db}
.form-row{margin-bottom:18px;width:100%;max-width:none}
.form-row label,.gilam-auth-label{
    display:block;
    color:#071229;
    font-size:15px;
    line-height:1.3;
    font-weight:700;
    margin-bottom:8px;
}
.required{color:#e92f28}
.input-shell,.gilam-auth-input{
    width:100%;
    height:49px;
    border:1px solid var(--mx-border);
    border-radius:9px;
    background:#fff;
    display:flex;
    align-items:center;
    gap:11px;
    padding:0 16px;
    transition:border-color .16s ease,box-shadow .16s ease;
}
.input-shell:focus-within,.gilam-auth-input:focus-within{
    border-color:rgba(255,120,31,.75);
    box-shadow:0 0 0 4px rgba(255,120,31,.12);
}
.input-shell i{width:18px;text-align:center;font-size:18px;color:#858585;flex:0 0 auto}
.input-shell input,.gilam-auth-input input{
    width:100%;
    min-width:0;
    height:100%;
    border:0;
    outline:0;
    background:transparent;
    color:#172033;
    font-size:16px;
    font-family:inherit;
    padding:0;
}
.input-shell input::placeholder,.gilam-auth-input input::placeholder{color:#6e7178;opacity:1}
.toggle-pass,.gilam-auth-eye{
    appearance:none;
    border:0;
    background:transparent;
    color:#858585;
    padding:5px;
    margin-right:-5px;
    cursor:pointer;
    border-radius:7px;
    font:inherit;
    font-size:13px;
    font-weight:700;
}
.toggle-pass:focus,.gilam-auth-eye:focus{outline:2px solid rgba(255,120,31,.35)}
.meta-row{
    min-height:20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    width:100%;
    margin:-2px 0 8px;
}
.remember{display:flex;align-items:center;gap:8px;color:#596579;font-size:12px;margin-bottom:12px;user-select:none}
.remember input{width:14px;height:14px;margin:0;accent-color:var(--mx-orange)}
.forgot{color:#b4b9c1;text-decoration:none;font-size:14px;font-weight:600}
.forgot:hover,.forgot:focus{color:var(--mx-orange);text-decoration:none}
.login-button,.gilam-auth-submit{
    width:198px;
    max-width:100%;
    min-height:49px;
    border:0;
    border-radius:10px;
    background:linear-gradient(180deg,#ff7d22,#ff711b);
    color:#fff;
    font-size:15px;
    letter-spacing:3.5px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 18px 28px rgba(255,120,31,.22);
    transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease;
}
.login-button:hover,.login-button:focus,.gilam-auth-submit:hover,.gilam-auth-submit:focus{transform:translateY(-1px);box-shadow:0 20px 34px rgba(255,120,31,.3);color:#fff;outline:0}
.login-button:disabled,.gilam-auth-submit:disabled{opacity:.72;cursor:not-allowed;transform:none}
.license{text-align:center;margin-top:auto;padding-top:14px}
.license-title{display:block;color:#06132d;font-size:16px;line-height:1.2;font-weight:400;margin-bottom:12px}
.license img{display:block;width:180px;max-width:65%;height:auto;margin:0 auto}
.gilam-reset-page{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:28px 18px;
}
.gilam-reset-shell{
    width:min(820px,100%);
    display:grid;
    grid-template-columns:minmax(250px,340px) minmax(320px,1fr);
    overflow:hidden;
}
.gilam-reset-brand{
    padding:38px 34px;
    color:#fff;
    background:linear-gradient(145deg,#043f34,#09654d);
    position:relative;
    overflow:hidden;
}
.gilam-reset-brand:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(255,120,31,.18);right:-95px;bottom:-95px}
.gilam-reset-logo{display:block;width:170px;max-width:80%;background:#fff;border-radius:10px;padding:8px;margin-bottom:34px}
.gilam-reset-kicker{font-size:11px;font-weight:800;letter-spacing:1.4px;color:#d7f1ea;text-transform:uppercase}
.gilam-reset-brand h1{font-size:27px;line-height:1.14;margin:12px 0 14px;color:#fff}
.gilam-reset-brand p{font-size:14px;line-height:1.6;color:#dbeee8;max-width:330px}
.gilam-reset-card{padding:38px 40px;background:#fff}
.gilam-reset-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#fff1e6;color:var(--mx-orange);font-size:24px;font-weight:900;margin-bottom:18px}
.gilam-reset-card h2{font-size:25px;line-height:1.2;margin:8px 0 10px;color:#071229}
.gilam-reset-intro{color:var(--mx-muted);font-size:14px;line-height:1.65;margin:0 0 22px}
.gilam-auth-help{font-size:13px;line-height:1.55;color:var(--mx-muted);margin:15px 0}
.gilam-auth-back{display:inline-flex;margin-top:18px;color:#667085;font-weight:700;text-decoration:none}
.gilam-auth-back:hover,.gilam-auth-back:focus{color:var(--mx-orange);text-decoration:none}
@media(max-width:820px){
    body.gilam-auth{border-top:0}
    .login-page{padding:24px 16px;align-items:flex-start}
    .login-wrap{grid-template-columns:1fr;gap:18px;max-width:620px}
    .brand-card{min-height:auto;padding:36px 24px;border-radius:14px}
    .brand-logo{width:230px;margin-bottom:22px}
    .brand-title{font-size:23px;letter-spacing:1px}
    .brand-modules{font-size:16px;margin-top:16px}
    .signin-card{min-height:auto;padding:34px 24px 30px;border-radius:14px}
    .signin-rule{margin:22px 0 34px}
    .signin-head h1{font-size:29px}
    .form-row label,.gilam-auth-label{font-size:17px}
    .input-shell,.gilam-auth-input{height:60px;padding:0 18px}
    .input-shell input,.gilam-auth-input input{font-size:18px}
    .forgot{font-size:15px}
    .login-button,.gilam-auth-submit{width:100%;font-size:18px;min-height:60px}
    .license{padding-top:30px}.license-title{font-size:18px}.license img{max-width:230px;width:70%}
    .gilam-reset-page{padding:16px}
    .gilam-reset-shell{grid-template-columns:1fr;border-radius:17px}
    .gilam-reset-brand{padding:32px}
    .gilam-reset-logo{margin-bottom:26px}
    .gilam-reset-brand h1{font-size:29px}
    .gilam-reset-card{padding:36px 28px}
    .gilam-reset-card h2{font-size:27px}
}
@media(max-width:420px){
    .login-page{padding:16px 10px}
    .brand-card,.signin-card{border-radius:12px}
    .signin-card{padding:28px 16px 26px}
    .signin-head h1{font-size:26px}
    .head-icon{width:23px;height:23px;border-radius:7px}
    .form-row{margin-bottom:21px}
    .input-shell,.gilam-auth-input{height:56px;padding:0 14px;gap:12px}
    .input-shell input,.gilam-auth-input input{font-size:16px}
    .input-shell i{width:21px;font-size:18px}
    .login-button,.gilam-auth-submit{letter-spacing:3px}
    .gilam-reset-page{padding:0}
    .gilam-reset-shell{border-radius:0;min-height:100vh}
    .gilam-reset-brand{padding:28px 22px}
    .gilam-reset-card{padding:32px 22px}
    .gilam-reset-logo{width:180px}
    .gilam-reset-brand h1{font-size:26px}
}
