:root {
    --login-ink: #15243b;
    --login-muted: #687891;
    --login-border: #d8e1ed;
    --login-blue: #1e66ff;
    --login-green: #22a447;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--login-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at 6% 10%, rgba(37, 192, 103, .12), transparent 26%), #f3f6fb;
}

.login-wrapper {
    width: min(100%, 1320px);
    min-height: min(780px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(460px, .98fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(218, 226, 237, .85);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(28, 48, 78, .12);
}

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 58px clamp(36px, 5vw, 76px) 32px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 4% 2%, rgba(52, 211, 126, .22), transparent 34%), linear-gradient(145deg, #183d30 0%, #102a23 58%, #0d211d 100%);
}

.login-brand::after {
    position: absolute;
    right: -120px;
    bottom: -170px;
    width: 430px;
    height: 430px;
    content: "";
    border: 1px solid rgba(111, 229, 157, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(111, 229, 157, .035), 0 0 0 84px rgba(111, 229, 157, .025);
    pointer-events: none;
}

.brand-logo, .brand-copy, .brand-content, .brand-footer { position: relative; z-index: 1; }
.brand-logo { display: flex; align-items: center; gap: 16px; }
.vca-mark {
    display: inline-grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    color: #82edaa;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -2px;
    border: 2px solid #36c975;
    border-radius: 18px;
    background: rgba(34, 164, 71, .12);
}
.brand-custom-logo { width: auto; max-width: 150px; height: 58px; object-fit: contain; }
.mobile-custom-logo { width: auto; max-width: 120px; height: 43px; object-fit: contain; }
.brand-name { display: block; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.brand-name strong { color: #75e89d; }
.brand-tagline { display: block; margin-top: 6px; color: #9fdfb5; font-size: 10px; font-weight: 700; letter-spacing: 2.1px; }
.brand-content { width: 100%; max-width: 660px; margin: 58px auto 48px; }
.brand-kicker, .login-eyebrow { color: #238d4d; font-size: 11px; font-weight: 800; letter-spacing: 1.45px; }
.brand-kicker { color: #81e9a6; }
.brand-content h2 { max-width: 600px; margin: 18px 0 16px; font-size: clamp(36px, 4vw, 54px); line-height: 1.12; font-weight: 650; letter-spacing: -1.8px; }
.brand-content h2 strong { color: #76e89c; font-weight: 750; }
.brand-content > p { max-width: 500px; margin: 0; color: #d0e2d8; font-size: 17px; line-height: 1.7; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 38px; }
.feature-card { min-height: 154px; padding: 18px 15px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 17px; background: rgba(255, 255, 255, .055); }
.feature-icon { display: grid; width: 38px; height: 38px; margin-bottom: 14px; place-items: center; color: #92f0b3; font-size: 11px; font-weight: 800; border-radius: 12px; background: rgba(38, 189, 94, .2); }
.feature-card strong { display: block; margin-bottom: 7px; font-size: 14px; }
.feature-card small { display: block; color: #c3dbcd; font-size: 12px; line-height: 1.55; }
.brand-footer { display: flex; justify-content: space-between; color: #9bb8a5; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }

.login-form-area { display: flex; align-items: center; justify-content: center; padding: 64px clamp(34px, 5vw, 76px); }
.login-box { width: 100%; max-width: 460px; }
.mobile-brand { display: none; }
.login-box h1 { margin: 12px 0 9px; color: var(--login-ink); font-size: clamp(30px, 3vw, 38px); line-height: 1.18; letter-spacing: -1px; }
.subtitle { margin: 0 0 34px; color: var(--login-muted); font-size: 15px; line-height: 1.65; }
.form-group { margin-bottom: 23px; }
.form-group label, .password-label-row label { display: block; margin: 0 0 9px; color: #25344b; font-size: 14px; font-weight: 700; }
.password-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.password-label-row a, .back-link, .login-support a { color: var(--login-blue); text-decoration: none; font-size: 13px; font-weight: 700; }
.password-label-row a:hover, .back-link:hover, .login-support a:hover { text-decoration: underline; }
.input-box { position: relative; }
.input-box input { width: 100%; height: 58px; padding: 0 60px 0 47px; color: var(--login-ink); font: inherit; font-size: 15px; border: 1px solid var(--login-border); border-radius: 12px; outline: none; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.input-box input::placeholder { color: #9aa8bb; }
.input-box input:focus { border-color: var(--login-blue); box-shadow: 0 0 0 4px rgba(30, 102, 255, .11); }
.input-icon { position: absolute; top: 50%; left: 17px; z-index: 1; color: #258e4b; font-size: 15px; font-weight: 800; transform: translateY(-50%); }
.toggle-password { position: absolute; top: 50%; right: 12px; padding: 8px; color: #536784; font-size: 12px; font-weight: 800; border: 0; background: transparent; cursor: pointer; transform: translateY(-50%); }
.form-submit { margin-top: 6px; }
.remember-control { display: flex; align-items: center; gap: 9px; margin: 0 0 19px; color: #41516a; font-size: 13px; font-weight: 600; cursor: pointer; }
.remember-control input { width: 17px; height: 17px; margin: 0; accent-color: var(--login-blue); }
.btn-login { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; color: #fff; font: inherit; font-size: 15px; font-weight: 750; text-align: center; text-decoration: none; border: 0; border-radius: 12px; background: linear-gradient(100deg, #1e66ff, #1557e5); box-shadow: 0 9px 20px rgba(30, 102, 255, .2); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 13px 24px rgba(30, 102, 255, .26); }
.btn-login span { font-size: 19px; }
.login-support { margin: 25px 0 0; color: #7a899e; font-size: 12px; line-height: 1.6; text-align: center; }
.recovery-box .back-link { display: inline-block; margin: 0 0 36px; }
.recovery-box .subtitle { margin-bottom: 28px; }
.recovery-box .btn-login { margin-top: 6px; }
.recovery-button-link { margin-top: 25px; }

@media (max-width: 980px) {
    body { padding: 18px; }
    .login-wrapper { max-width: 720px; min-height: 0; grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-form-area { padding: 54px clamp(26px, 9vw, 76px); }
    .mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; color: var(--login-ink); font-size: 20px; font-weight: 700; }
    .mobile-brand .vca-mark { width: 43px; height: 43px; color: #188744; font-size: 15px; border-radius: 14px; }
    .mobile-brand strong { color: #168a49; }
}

@media (max-width: 520px) {
    body { padding: 0; background: #fff; }
    .login-wrapper { width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .login-form-area { align-items: flex-start; padding: 30px 23px 38px; }
    .mobile-brand { margin-bottom: 43px; }
    .login-box h1 { font-size: 30px; }
    .subtitle { margin-bottom: 28px; font-size: 14px; }
    .password-label-row { align-items: flex-start; }
    .password-label-row a { font-size: 12px; }
    .recovery-box .back-link { margin-bottom: 30px; }
}
