/* ============================================================
   VT Login Page — login.css
   Vibrant Technologie | Internal Portal
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
    --ink:        #0a1f22;
    --teal-900:   #0d2b30;
    --teal-700:   #134e57;
    --teal-500:   #1a6b77;
    --teal-400:   #2190a0;
    --teal-300:   #38b2c0;
    --mint:       #00d4b4;
    --mint-dim:   rgba(0, 212, 180, .12);
    --white:      #ffffff;
    --gray-50:    #f7f9fa;
    --gray-100:   #eef1f3;
    --gray-200:   #dce3e6;
    --gray-400:   #8fa4a8;
    --gray-600:   #4a6468;
    --red:        #e53e3e;
    --red-light:  #fff5f5;
    --red-border: #fca5a5;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE LAYOUT
━━━━━━━━━━━━━━━━━━━━━━━━ */
.page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    overflow: hidden;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━
   LEFT — BRAND PANEL
━━━━━━━━━━━━━━━━━━━━━━━━ */
.left {
    background: var(--teal-900);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 32px 48px 24px;
    height: 100vh;
}

/* layered gradient — no photo bleed */
.left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at -10% 110%, rgba(0, 212, 180, .18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 60% at 110% -10%, rgba(33, 144, 160, .22) 0%, transparent 50%),
        linear-gradient(160deg, #0a1f22 0%, #0f3338 40%, #0d2b30 100%);
}

/* geometric accent grid lines */
.left::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 180, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 180, .06) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* glow orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: rgba(0, 212, 180, .13);
    top: -140px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(33, 144, 160, .18);
    bottom: -80px;
    right: -60px;
}

/* content sits above ::before / ::after */
.left-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Logo ── */
.brand-logo {
    width: 160px;
    margin-bottom: 28px;
    opacity: .92;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 5px;
}

/* ── Headline ── */
.brand-heading {
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.18;
    letter-spacing: -.5px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.brand-heading .hl {
    background: linear-gradient(90deg, var(--mint) 0%, #38d9c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-sub {
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, .52);
    line-height: 1.65;
    max-width: 360px;
    margin-bottom: 22px;
    flex-shrink: 0;
}

/* ── Stats row ── */
.stats-row {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, .04);
    flex-shrink: 0;
}

.stat {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.stat:last-child {
    border-right: none;
}

.stat-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--mint);
    letter-spacing: -.3px;
    line-height: 1;
    margin-bottom: 3px;
}

.stat-lbl {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
    letter-spacing: .6px;
}

/* ── Feature list ── */
.features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
}

.feat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}

.feat:hover {
    background: rgba(0, 212, 180, .07);
    border-color: rgba(0, 212, 180, .2);
}

.feat-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 7px rgba(0, 212, 180, .6);
}

.feat-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .7);
}

/* ── Bottom copyright ── */
.left-foot {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: 11.5px;
    color: rgba(255, 255, 255, .25);
    font-weight: 400;
    flex-shrink: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━
   RIGHT — LOGIN PANEL
━━━━━━━━━━━━━━━━━━━━━━━━ */
.right {
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    position: relative;
    overflow-y: auto;
    height: 100vh;
}

/* subtle dot texture */
.right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--gray-200) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .6;
}

/* ── Card ── */
.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, .04),
        0 12px 32px rgba(10, 31, 34, .08),
        0 40px 80px rgba(10, 31, 34, .06);
    overflow: hidden;
    animation: rise .5s cubic-bezier(.22, .68, 0, 1.15) both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* top accent bar */
.card-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--teal-700) 0%, var(--mint) 100%);
}

.card-body {
    padding: 40px 40px 32px;
}

/* ── Card header ── */
.card-head {
    text-align: center;
    margin-bottom: 34px;
}

.shield-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--teal-700), var(--teal-500));
    box-shadow: 0 8px 24px rgba(13, 43, 48, .28), 0 2px 6px rgba(13, 43, 48, .18);
    margin-bottom: 22px;
}

.shield-wrap svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.5px;
    margin-bottom: 7px;
}

.card-desc {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 400;
}

/* ── Error alert ── */
.err-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--red-light);
    border: 1.5px solid var(--red-border);
    border-radius: 12px;
    padding: 13px 15px;
    margin-bottom: 24px;
    animation: shake .35s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%, 75%  { transform: translateX(-5px); }
    50%       { transform: translateX(5px); }
}

.err-box svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    stroke: var(--red);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 1px;
}

.err-box p {
    font-size: 13px;
    color: #c53030;
    font-weight: 500;
    line-height: 1.5;
}

/* ── Field ── */
.field {
    margin-bottom: 20px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 8px;
}

.field-label svg {
    width: 13px;
    height: 13px;
    stroke: var(--teal-400);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-shell {
    position: relative;
}

.field-input {
    width: 100%;
    height: 50px;
    padding: 0 48px;
    border: 1.5px solid var(--gray-200);
    border-radius: 13px;
    font-size: 14.5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--gray-50);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.field-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.field-input:focus {
    border-color: var(--teal-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 107, 119, .1);
}

.field-input.has-error {
    border-color: var(--red);
    background: var(--red-light);
}

/* left icon */
.fi-left {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    color: var(--gray-400);
    transition: color .2s;
}

.fi-left svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.field-input:focus + .fi-left {
    color: var(--teal-500);
}

/* password toggle button */
.pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    color: var(--gray-400);
    display: flex;
    transition: color .2s, background .15s;
}

.pw-toggle:hover {
    color: var(--teal-500);
    background: var(--gray-100);
}

.pw-toggle svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Submit button ── */
.btn-submit {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-500) 100%);
    color: white;
    font-size: 15.5px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: .1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(13, 43, 48, .28), 0 1px 3px rgba(13, 43, 48, .15);
    transition: transform .18s, box-shadow .18s;
}

/* shimmer on hover */
.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .12) 60%, transparent 80%);
    transform: translateX(-100%);
    transition: transform .5s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(13, 43, 48, .35), 0 2px 6px rgba(13, 43, 48, .18);
}

.btn-submit:hover::after {
    transform: translateX(100%);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit svg {
    width: 19px;
    height: 19px;
    stroke: white;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ── Divider ── */
.divider {
    margin: 28px 0 0;
    border: none;
    border-top: 1px solid var(--gray-100);
}

/* ── Card footer ── */
.card-foot {
    padding: 18px 40px 28px;
    text-align: center;
}

.foot-company {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.foot-sys {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 400;
    margin-bottom: 14px;
}

/* secure pill badge */
.secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--teal-500);
    letter-spacing: .2px;
}

.secure-pill svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 860px) {
    html, body { overflow: auto; }
    .page { grid-template-columns: 1fr; height: auto; overflow: visible; }
    .left  { display: none; }
    .right { min-height: 100vh; height: auto; }
}

@media (max-width: 480px) {
    .card-body  { padding: 32px 24px 24px; }
    .card-foot  { padding: 14px 24px 24px; }
    .card-title { font-size: 22px; }
}
