﻿:root {
    color-scheme: light;
    --brand: #4EBFF6;
    --brand-dark: #1399dc;
    --brand-soft: #eaf8ff;
    --ink: #10243e;
    --muted: #68798f;
    --line: #dbe6ef;
    --surface: #ffffff;
    --background: #f4f8fb;
    --danger: #d92d20;
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    margin: 0;
}

body {
    min-width: 320px;
    background: var(--background);
    color: var(--ink);
    font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input {
    font: inherit;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(520px, 1.15fr) minmax(440px, .85fr);
    min-height: 100vh;
}

.brand-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: clamp(42px, 5vw, 76px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgba(255,255,255,.27), transparent 28%),
        linear-gradient(145deg, #68cbf8 0%, #32aeea 48%, #168ed2 100%);
}

.brand-panel::after {
    position: absolute;
    right: -16%;
    bottom: -28%;
    width: 72%;
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    content: "";
}

.brand-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(145deg, rgba(52,177,235,.96), rgba(10,119,183,.94));
}

.brand-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.11);
    backdrop-filter: blur(2px);
}

.brand-orb-one {
    top: -70px;
    right: -40px;
    width: 260px;
    height: 260px;
}

.brand-orb-two {
    left: -80px;
    bottom: 12%;
    width: 190px;
    height: 190px;
}

.brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 750px);
    margin: auto;
    flex-direction: column;
}

.brand-logo {
    width: min(250px, 42%);
    height: auto;
    margin-bottom: clamp(44px, 8vh, 82px);
    filter: brightness(0) invert(1);
}

.brand-name {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: clamp(44px, 8vh, 82px);
    font-size: 27px;
    letter-spacing: .12em;
}

.brand-symbol {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 42px;
}

.brand-symbol i {
    position: absolute;
    inset: 5px;
    border: 3px solid #fff;
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(-35deg);
}

.brand-symbol i:nth-child(2) { inset: 10px; opacity: .8; }
.brand-symbol i:nth-child(3) { inset: 15px; opacity: .6; }

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.brand-copy .eyebrow {
    color: rgba(255,255,255,.8);
}

.brand-copy h1 {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 4.3vw, 66px);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.brand-copy p {
    max-width: 650px;
    margin: 24px 0 36px;
    color: rgba(255,255,255,.84);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.75;
}

.dashboard-preview {
    display: flex;
    width: min(100%, 690px);
    min-height: 255px;
    margin-top: auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 30px 70px rgba(0,57,104,.28);
    transform: perspective(1200px) rotateX(1deg) rotateY(-2deg);
}

.preview-sidebar {
    display: flex;
    width: 58px;
    padding: 18px 14px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: #112d4b;
}

.preview-sidebar span {
    width: 17px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.34);
}

.preview-sidebar .preview-mark {
    width: 24px;
    height: 24px;
    margin-bottom: 10px;
    border: 5px solid var(--brand);
    border-left-color: transparent;
    border-radius: 50%;
}

.preview-main {
    flex: 1;
    padding: 18px 20px;
}

.preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #223b57;
    font-size: 11px;
    font-weight: 600;
}

.preview-topbar i {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: var(--brand-soft);
}

.preview-stats {
    display: grid;
    margin: 18px 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.preview-stats div {
    position: relative;
    display: grid;
    padding: 12px 10px 10px 34px;
    border: 1px solid #e8eef4;
    border-radius: 9px;
    box-shadow: 0 6px 14px rgba(18,49,77,.04);
}

.preview-stats i {
    position: absolute;
    top: 13px;
    left: 10px;
    width: 15px;
    height: 15px;
    border-radius: 5px;
    background: #4EBFF6;
}

.preview-stats i.violet { background: #8d83f6; }
.preview-stats i.green { background: #44c89a; }
.preview-stats strong { color: #1a3451; font-size: 12px; }
.preview-stats small { color: #91a0b1; font-size: 7px; }

.preview-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 12px;
}

.preview-chart, .preview-activity {
    min-height: 112px;
    padding: 12px;
    border: 1px solid #e8eef4;
    border-radius: 9px;
    color: #53687e;
    font-size: 8px;
}

.chart-bars {
    display: flex;
    height: 70px;
    align-items: flex-end;
    gap: 8px;
}

.chart-bars i {
    width: 12%;
    height: 35%;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(#7bd5ff, #4EBFF6);
}

.chart-bars i:nth-child(2) { height: 55%; }
.chart-bars i:nth-child(3) { height: 42%; }
.chart-bars i:nth-child(4) { height: 78%; }
.chart-bars i:nth-child(5) { height: 62%; }
.chart-bars i:nth-child(6) { height: 88%; }
.chart-bars i:nth-child(7) { height: 72%; }

.preview-activity i {
    display: block;
    height: 10px;
    margin-top: 12px;
    border-radius: 5px;
    background: linear-gradient(90deg, #e8f7fe 22%, #f1f5f8 22%);
}

.powered-by {
    position: absolute;
    z-index: 2;
    right: 30px;
    bottom: 20px;
    color: rgba(255,255,255,.7);
    font-size: 10px;
    letter-spacing: .04em;
}

.form-panel {
    display: flex;
    min-height: 100vh;
    padding: 42px clamp(28px, 5vw, 76px);
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 90% 5%, rgba(78,191,246,.1), transparent 24%),
        var(--background);
}

.form-panel-inner {
    width: min(100%, 490px);
}

.mobile-brand {
    display: none;
}

.login-card.wrap-login100 {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: clamp(32px, 4vw, 52px);
    overflow: visible;
    border: 1px solid rgba(210,224,234,.9);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(29,70,103,.1), 0 4px 14px rgba(29,70,103,.04);
}

.login100-form {
    width: 100%;
}

.form-heading {
    margin-bottom: 34px;
}

.tenant-logo {
    display: block;
    max-width: 210px;
    max-height: 72px;
    margin: 0 0 30px;
    object-fit: contain;
    object-position: left center;
}

.form-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(27px, 2.4vw, 34px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.form-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.field-group.wrap-input100 {
    width: 100%;
    margin-bottom: 22px;
    padding: 0;
    border: 0;
}

.label-input100 {
    display: block;
    margin-bottom: 8px;
    color: #334a62;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.input-frame {
    position: relative;
}

.input100 {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 48px 0 44px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    background: #fbfdff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input100::placeholder {
    color: #9aa9b8;
}

.input100:hover {
    border-color: #bed4e2;
    background: #fff;
}

.input100:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(78,191,246,.14);
}

.focus-input100 {
    display: none;
}

.field-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 17px;
    color: #8da0b2;
    font-size: 16px;
    transform: translateY(-50%);
    transition: color .2s ease;
}

.input-frame:focus-within .field-icon {
    color: var(--brand-dark);
}

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 8px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    place-items: center;
    background: transparent;
    color: #7c8fa3;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s ease, background .2s ease;
}

.password-toggle:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

.wrap-input100.alert-validate::before {
    position: static;
    display: block;
    width: auto;
    max-width: none;
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--danger);
    content: attr(data-validate);
    font-size: 11px;
    line-height: 1.4;
    opacity: 1;
    pointer-events: none;
    text-align: left;
    transform: none;
    visibility: visible;
}

.wrap-input100.alert-validate::after {
    display: none;
}

.wrap-input100.alert-validate .input100 {
    border-color: #f3a29b;
    box-shadow: 0 0 0 3px rgba(217,45,32,.08);
}

.container-login100-form-btn {
    width: 100%;
    margin-top: 8px;
}

.login100-form-btn {
    position: relative;
    display: flex;
    width: 100%;
    height: 54px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--brand);
    box-shadow: 0 12px 24px rgba(78,191,246,.28);
    color: #07324b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.login100-form-btn:hover {
    background: #65c8f7;
    box-shadow: 0 15px 28px rgba(78,191,246,.34);
    transform: translateY(-1px);
}

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

.login100-form-btn:focus-visible {
    outline: 3px solid rgba(78,191,246,.28);
    outline-offset: 3px;
}

.login100-form-btn:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.button-arrow {
    position: absolute;
    right: 20px;
    font-size: 12px;
}

.spinner-border {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.form-error {
    display: none;
    width: 100%;
    margin-top: 18px;
    padding: 11px 13px;
    border: 1px solid #f4c7c3;
    border-radius: 9px;
    background: #fff5f4;
    color: var(--danger);
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.form-error:not(:empty) {
    display: block;
}

.signup-link {
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.signup-link a {
    color: var(--brand-dark);
    font-weight: 600;
}

.security-note {
    margin: 20px 0 0;
    color: #8191a2;
    font-size: 11px;
    text-align: center;
}

.security-note i {
    margin-right: 5px;
    color: var(--brand-dark);
}

@media (max-width: 1100px) {
    .login-shell {
        grid-template-columns: minmax(440px, 1fr) minmax(400px, .9fr);
    }

    .brand-panel {
        padding: 42px;
    }

    .dashboard-preview {
        min-height: 220px;
    }
}

@media (max-width: 860px) {
    .login-shell {
        display: flex;
        min-height: 100vh;
        flex-direction: column;
    }

    .form-panel {
        order: 1;
        min-height: 100vh;
        padding: 28px 20px;
    }

    .brand-panel {
        display: none;
        order: 2;
    }

    .mobile-brand {
        display: block;
        margin-bottom: 22px;
        text-align: center;
    }

    .mobile-brand img {
        width: 165px;
        height: auto;
    }

    .login-card.wrap-login100 {
        padding: 34px 28px;
    }

    .tenant-logo {
        max-height: 62px;
        margin-bottom: 26px;
    }
}

@media (max-width: 480px) {
    .form-panel {
        padding: 20px 14px;
        align-items: flex-start;
    }

    .form-panel-inner {
        margin: auto;
    }

    .mobile-brand {
        margin: 10px 0 18px;
    }

    .login-card.wrap-login100 {
        padding: 30px 22px;
        border-radius: 14px;
        box-shadow: 0 16px 45px rgba(29,70,103,.09);
    }

    .form-heading {
        margin-bottom: 28px;
    }

    .tenant-logo {
        max-width: 180px;
        max-height: 58px;
    }

    .form-heading h2 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #ecf5fb;
        --muted: #9eb0c0;
        --line: #31485c;
        --surface: #132637;
        --background: #0d1c29;
    }

    body {
        color-scheme: dark;
    }

    .form-panel {
        background:
            radial-gradient(circle at 90% 5%, rgba(78,191,246,.1), transparent 24%),
            var(--background);
    }

    .login-card.wrap-login100 {
        border-color: #294055;
        box-shadow: 0 24px 70px rgba(0,0,0,.25);
    }

    .label-input100 {
        color: #c7d7e3;
    }

    .input100 {
        background: #102131;
        color: var(--ink);
    }

    .input100:hover, .input100:focus {
        background: #162b3d;
    }

    .login100-form-btn {
        color: #072b40;
    }

    .form-error {
        border-color: #6d3737;
        background: #341f23;
        color: #ffaaa2;
    }
}
