:root {
    --vcs-primary: #073d6b;
    --vcs-primary-dark: #04233f;
    --vcs-primary-soft: #e9f3fb;
    --vcs-accent: #f59d23;
    --vcs-accent-dark: #df8106;
    --vcs-text: #142033;
    --vcs-muted: #64748b;
    --vcs-border: #dbe5ef;
    --vcs-bg: #f4f8fc;
    --vcs-card: #ffffff;
    --vcs-danger: #b42318;
    --vcs-danger-bg: #fff1f0;
    --vcs-success: #067647;
    --vcs-success-bg: #ecfdf3;
    --vcs-warning: #b54708;
    --vcs-warning-bg: #fffaeb;
    --vcs-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
    --vcs-radius-lg: 30px;
    --vcs-radius-md: 18px;
    --vcs-radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html,
body.vcs-login-page {
    min-height: 100%;
}

body.vcs-login-page {
    margin: 0;
    color: var(--vcs-text);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 8% 10%, rgba(245, 157, 35, 0.18), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(7, 61, 107, 0.16), transparent 30%),
        linear-gradient(135deg, #eef6fd 0%, #f9fbff 45%, #fff8ee 100%);
    overflow-x: hidden;
}

body.vcs-modal-active {
    overflow: hidden;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

.vcs-login-shell {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
    padding: 28px;
    gap: 28px;
}

.vcs-login-hero,
.vcs-login-panel {
    position: relative;
    min-width: 0;
}

.vcs-login-hero {
    overflow: hidden;
    border-radius: var(--vcs-radius-lg);
    background:
        linear-gradient(145deg, rgba(7, 61, 107, 0.95), rgba(4, 35, 63, 0.98)),
        linear-gradient(45deg, rgba(245, 157, 35, 0.1), rgba(255, 255, 255, 0));
    color: #fff;
    box-shadow: var(--vcs-shadow);
}

.vcs-login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.35));
}

.vcs-hero-inner {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 56px);
    padding: 42px;
    display: flex;
    flex-direction: column;
}

.vcs-hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.45;
    pointer-events: none;
}

.vcs-hero-glow-one {
    right: -110px;
    top: -90px;
    background: rgba(245, 157, 35, 0.45);
}

.vcs-hero-glow-two {
    left: -140px;
    bottom: -150px;
    background: rgba(79, 185, 255, 0.36);
}

.vcs-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    width: max-content;
    max-width: 100%;
}

.vcs-brand:hover,
.vcs-brand:focus {
    color: #fff;
    text-decoration: none;
}

.vcs-brand-logo-wrap {
    width: 150px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 14px 36px rgba(0,0,0,0.18);
}

.vcs-brand-logo,
.vcs-mobile-logo {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.vcs-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.vcs-brand-text strong {
    font-size: 21px;
    letter-spacing: 0.2px;
}

.vcs-brand-text small {
    margin-top: 5px;
    color: rgba(255,255,255,0.76);
    font-size: 13px;
}

.vcs-hero-copy {
    max-width: 680px;
    margin-top: auto;
    padding-top: 72px;
}

.vcs-eyebrow,
.vcs-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--vcs-accent);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vcs-eyebrow::before,
.vcs-card-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(245,157,35,0.16);
}

.vcs-hero-copy h1 {
    margin: 0;
    max-width: 760px;
    color: #fff;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.vcs-hero-copy p {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255,255,255,0.82);
    font-size: 17px;
    line-height: 1.75;
}

.vcs-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 42px;
}

.vcs-feature-card {
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 22px;
    background: rgba(255,255,255,0.09);
    backdrop-filter: blur(14px);
}

.vcs-feature-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #112234;
    background: var(--vcs-accent);
    font-weight: 900;
}

.vcs-feature-card strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 14px;
}

.vcs-feature-card small {
    display: block;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    line-height: 1.55;
}

.vcs-trust-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    margin-top: 22px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    color: rgba(255,255,255,0.86);
}

.vcs-trust-strip p {
    margin: 0;
    font-size: 13px;
}

.vcs-login-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 28px min(3vw, 34px);
}

.vcs-login-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid rgba(219, 229, 239, 0.85);
    border-radius: var(--vcs-radius-lg);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(22px);
}

.vcs-mobile-brand {
    display: none;
    width: 150px;
    margin-bottom: 24px;
}

.vcs-card-heading {
    margin-bottom: 28px;
}

.vcs-card-heading h2 {
    margin: 0;
    color: var(--vcs-text);
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.vcs-card-heading p,
.vcs-modal-body p,
.vcs-help-card span {
    color: var(--vcs-muted);
}

.vcs-card-heading p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
}

.vcs-auth-form {
    display: grid;
    gap: 18px;
}

.vcs-field-group label,
.vcs-captcha-box label {
    display: block;
    margin: 0 0 8px;
    color: #26384f;
    font-size: 13px;
    font-weight: 800;
}

.vcs-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vcs-link-button,
.vcs-forgot-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--vcs-primary);
    font-size: 13px;
    font-weight: 800;
}

.vcs-link-button:hover,
.vcs-link-button:focus,
.vcs-forgot-link:hover,
.vcs-forgot-link:focus {
    color: var(--vcs-accent-dark);
    text-decoration: underline;
}

.vcs-input-wrap {
    position: relative;
}

.vcs-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8aa0b8;
    font-size: 14px;
    font-weight: 900;
    pointer-events: none;
}

.vcs-input.form-control,
.form-control.vcs-input {
    height: 52px;
    margin: 0;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--vcs-border);
    border-radius: 16px;
    color: var(--vcs-text);
    background: #fff;
    box-shadow: none;
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.vcs-input.form-control:focus,
.form-control.vcs-input:focus {
    border-color: rgba(7, 61, 107, 0.62);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7, 61, 107, 0.11);
    outline: 0;
}

.vcs-captcha-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e5edf6;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fbff, #fffaf2);
}

.vcs-captcha-box p {
    margin: 0;
    color: var(--vcs-muted);
    font-size: 12px;
    line-height: 1.5;
}

.vcs-captcha-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vcs-captcha-question {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--vcs-primary-dark);
    background: #fff;
    border: 1px solid #e5edf6;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.vcs-captcha-field.form-control,
.form-control.vcs-captcha-field {
    width: 92px;
    padding-left: 14px;
    text-align: center;
    font-weight: 800;
}

.vcs-primary-btn,
.vcs-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 16px;
    border: 0;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.vcs-primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--vcs-primary), #0a5d9b);
    box-shadow: 0 15px 28px rgba(7, 61, 107, 0.22);
}

.vcs-primary-btn:hover,
.vcs-primary-btn:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--vcs-primary-dark), #084f86);
    box-shadow: 0 18px 34px rgba(7, 61, 107, 0.28);
    transform: translateY(-1px);
    outline: 0;
}

.vcs-primary-btn:disabled {
    opacity: 0.74;
    transform: none;
    box-shadow: none;
}

.vcs-secondary-btn {
    color: var(--vcs-primary);
    background: #fff;
    border: 1px solid var(--vcs-border);
}

.vcs-secondary-btn:hover,
.vcs-secondary-btn:focus {
    border-color: rgba(7, 61, 107, 0.45);
    background: var(--vcs-primary-soft);
    outline: 0;
}

.vcs-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: -3px;
}

.vcs-help-card {
    width: 100%;
    max-width: 500px;
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 20px;
    color: var(--vcs-text);
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(219, 229, 239, 0.9);
}

.vcs-help-card strong,
.vcs-help-card span {
    font-size: 13px;
}

.vcs-alert {
    display: none;
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-size: 13px;
    line-height: 1.55;
}

.vcs-alert a {
    color: inherit;
    font-weight: 900;
    text-decoration: underline;
}

.vcs-alert-danger {
    display: block;
    color: var(--vcs-danger);
    background: var(--vcs-danger-bg);
    border-color: #fecdca;
}

.vcs-alert-success {
    display: block;
    color: var(--vcs-success);
    background: var(--vcs-success-bg);
    border-color: #abefc6;
}

.vcs-alert-warning {
    display: block;
    color: var(--vcs-warning);
    background: var(--vcs-warning-bg);
    border-color: #fedf89;
}

.vcs-loading {
    opacity: .76;
}

.vcs-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.vcs-auth-modal.vcs-modal-open {
    display: flex;
}

.vcs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 20, 37, 0.68);
    backdrop-filter: blur(8px);
}

.vcs-modal-card {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.vcs-modal-header,
.vcs-modal-body,
.vcs-modal-footer {
    padding-left: 30px;
    padding-right: 30px;
}

.vcs-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2f7;
}

.vcs-modal-header h3 {
    margin: 0;
    color: var(--vcs-text);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.vcs-modal-close {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #526173;
    background: #f2f6fa;
    font-size: 28px;
    line-height: 1;
}

.vcs-modal-close:hover,
.vcs-modal-close:focus {
    color: var(--vcs-primary);
    background: var(--vcs-primary-soft);
    outline: 0;
}

.vcs-modal-body {
    padding-top: 24px;
    padding-bottom: 10px;
}

.vcs-modal-body p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.7;
}

.vcs-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 30px;
}

.vcs-modal-submit {
    min-width: 160px;
}

@media (max-width: 1180px) {
    .vcs-login-shell {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
    }

    .vcs-hero-inner {
        min-height: auto;
        padding: 34px;
    }

    .vcs-hero-copy {
        padding-top: 62px;
    }

    .vcs-login-panel {
        padding: 8px 0 24px;
    }
}

@media (max-width: 840px) {
    .vcs-login-hero {
        display: none;
    }

    .vcs-login-shell {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 18px;
    }

    .vcs-login-panel {
        width: 100%;
        justify-content: center;
    }

    .vcs-mobile-brand {
        display: block;
    }

    .vcs-login-card {
        padding: 30px;
    }
}

@media (max-width: 620px) {
    body.vcs-login-page {
        background: linear-gradient(180deg, #f2f7fc 0%, #fff8ee 100%);
    }

    .vcs-login-shell {
        padding: 12px;
    }

    .vcs-login-card {
        padding: 24px;
        border-radius: 24px;
    }

    .vcs-card-heading h2 {
        font-size: 25px;
    }

    .vcs-captcha-box {
        grid-template-columns: minmax(0, 1fr);
    }

    .vcs-captcha-inputs {
        justify-content: space-between;
    }

    .vcs-captcha-field.form-control,
    .form-control.vcs-captcha-field {
        flex: 1;
        width: auto;
    }

    .vcs-help-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .vcs-modal-header,
    .vcs-modal-body,
    .vcs-modal-footer {
        padding-left: 22px;
        padding-right: 22px;
    }

    .vcs-modal-footer {
        flex-direction: column-reverse;
    }

    .vcs-modal-footer .vcs-primary-btn,
    .vcs-modal-footer .vcs-secondary-btn {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .vcs-login-card {
        padding: 20px;
    }

    .vcs-input.form-control,
    .form-control.vcs-input {
        height: 50px;
    }

    .vcs-captcha-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .vcs-captcha-question {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
