/* ===================================================================
   CLog Design System — Login Screen
   Generated to match the CLog Design System export (colors, type,
   spacing, radius, elevation, layout tokens) pixel-for-pixel.
   =================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    /* base palette */
    --navy-900: #092747;
    --navy-800: #0E355D;
    --navy-700: #153B66;
    --nav-top: #0F2C49;
    --nav-bottom: #0B2340;
    --nav-active: #0159BA;
    --blue-600: #087CF0;
    --blue-700: #066AD1;
    --blue-800: #0559B0;
    --blue-400: #19A4FF;
    --blue-050: #EAF4FE;
    --blue-link: #005FEE;
    --teal-500: #16C4C1;
    --teal-050: #DCFDF6;
    --red-600: #E83E4D;
    --red-700: #D93648;
    --red-050: #FFF0F2;
    --ink-900: #10284A;
    --ink-600: #536984;
    --ink-500: #6F8099;
    --white: #FFFFFF;
    --slate-050: #F4F8FC;
    --slate-075: #F1F6FB;
    --slate-025: #F7FAFF;
    --line-100: #DCE6F1;
    /* semantic aliases */
    --surface-card: var(--white);
    --surface-sunken: var(--slate-025);
    --surface-subtle: var(--slate-075);
    --text-body: var(--ink-900);
    --text-muted: var(--ink-500);
    --text-table-header: var(--ink-600);
    --text-inverse: var(--white);
    --text-link: var(--blue-link);
    --text-link-hover: var(--blue-800);
    --border-default: var(--line-100);
    --border-strong: #C6D6E8;
    --border-focus: var(--blue-600);
    --accent-primary: var(--blue-600);
    --accent-primary-hover: var(--blue-700);
    --accent-primary-active: var(--blue-800);
    --accent-primary-soft: var(--blue-050);
    --feedback-danger: var(--red-600);
    --focus-ring: 0 0 0 3px rgba(8,124,240,.25);
    /* typography */
    --font-sans: Inter,"Inter Fallback",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    --text-body-size: 14px;
    --text-small-size: 12px;
    /* spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 40px;
    /* radius */
    --radius-sm: 7px;
    --radius-md: 9px;
    --radius-lg: 12px;
    --radius-circle: 999px;
    /* elevation */
    --shadow-card: 0 24px 60px rgba(9,39,71,.10);
    --shadow-inset-control: inset 0 1px 2px rgba(21,55,91,.04);
    /* control sizing */
    --control-height: 48px;
    --bp-tablet: 900px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-sans);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-link);
    text-decoration: none;
}

    a:hover {
        color: var(--text-link-hover);
        text-decoration: underline;
    }

/* ---------- page shell ---------- */
.clog-login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F7FAFE;
}

.clog-login-grid {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    overflow: hidden;
    background: var(--nav-bottom);
}

/* Full-bleed background photo + overlay: absolutely positioned behind BOTH
   grid columns (rather than confined to the left hero column), so the same
   image spans the full width of the page under the form card too. */
.clog-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .9;
    z-index: 0;
}

.clog-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Dark tint over the hero photo on the left (keeps the headline text
       readable), fading up to a soft white glow on the right behind the
       form card. */
    background: linear-gradient(90deg,rgba(7,24,44,.82) 0%,rgba(7,24,44,.55) 45%,rgba(255,255,255,.85) 75%,rgba(255,255,255,.95) 100%);
}

/* ---------- hero (left) panel ---------- */
.clog-hero {
    position: relative;
    z-index: 2;
    padding: 56px 64px;
    color: #fff;
}

.clog-hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.clog-hero-logo {
    width: 282px;
    object-fit: contain;
    margin-left: -8px;
}

.clog-hero-title {
    margin: 40px 0 0;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
    max-width: 480px;
}

.clog-hero-title-accent {
    color: var(--teal-500);
}

.clog-hero-sub {
    margin: 20px 0 0;
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255,255,255,.82);
}

.clog-feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin: 44px 0 0;
}

.clog-feature {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.clog-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--radius-circle);
    background: rgba(255,255,255,.12);
    color: #fff;
}

.clog-feature-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.clog-feature-sub {
    font-size: 14px;
    color: rgba(255,255,255,.72);
}

.clog-hero-footer {
    margin-top: auto;
    padding-top: 40px;
}

.clog-hero-divider {
    width: 40px;
    height: 2px;
    background: var(--teal-500);
    margin-bottom: 14px;
}

.clog-hero-tagline {
    font-size: 12px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
}

/* ---------- form (right) panel ---------- */
.clog-form-panel {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 56px;
}

.clog-help-link {
    position: absolute;
    top: 28px;
    right: 40px;
    font-size: 14px;
}

.clog-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 40px 44px;
}

.clog-card-logo {
    display: block;
    width: 270px;
    margin: 0 auto 22px;
}

.clog-card-title {
    margin: 0 0 6px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-body);
}

.clog-card-sub {
    margin: 0 0 26px;
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
}

.clog-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.clog-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.clog-field-label {
    font-size: var(--text-small-size);
    font-weight: 600;
    color: var(--text-table-header);
}

/* input wrap replicates the CLog <Input> component anatomy */
.clog-input-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    height: var(--control-height);
    padding: 0 var(--space-md);
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-inset-control);
    transition: border-color .15s ease,box-shadow .15s ease;
}

    .clog-input-wrap:focus-within {
        border-color: var(--border-focus);
        box-shadow: var(--focus-ring);
    }

.clog-input-icon {
    display: flex;
    color: var(--text-muted);
    flex-shrink: 0;
}

.cssTextboxLogin {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: var(--text-body-size);
    color: var(--text-body);
    height: 100%;
    padding: 0;
}

.clog-row-between {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-md);
}

.clog-forgot-link {
    font-size: 14px;
}

/* button replicates the CLog <Button size="lg" block> anatomy */
.cssButtonLogin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    height: 52px;
    margin-top: 4px;
    padding: 0 var(--space-xl);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: var(--accent-primary);
    color: var(--text-inverse);
    cursor: pointer;
    transition: background .15s ease,transform .06s ease;
}

    .cssButtonLogin:hover {
        background: var(--accent-primary-hover);
    }

    .cssButtonLogin:active {
        background: var(--accent-primary-active);
        transform: translateY(1px);
    }

.clog-debug-row {
    min-height: 20px;
    margin-top: 14px;
    text-align: center;
}

.cssLabelLogin {
    font-size: var(--text-small-size);
    font-weight: 600;
    color: var(--feedback-danger);
}

.clog-signup-text {
    margin: 24px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------- footer ---------- */
.clog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: 18px 40px;
    background: #fff;
    border-top: 1px solid var(--border-default);
    font-size: 13px;
    color: var(--text-muted);
}

.clog-footer-links {
    display: flex;
    gap: var(--space-lg);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .clog-login-grid {
        grid-template-columns: 1fr;
    }

    .clog-hero {
        display: none;
    }

    /* The diagonal light-on-the-right gradient is tuned for the two-column
       desktop layout; on a single narrow column it reads unevenly, so use a
       flatter, uniformly dark wash instead — the card still needs to be
       readable no matter where it lands horizontally. */
    .clog-hero-overlay {
        background: rgba(7,28,50,.78);
    }

    .clog-form-panel {
        padding: 32px 20px;
    }

    .clog-card {
        padding: 32px 24px;
    }

    .clog-help-link {
        top: 16px;
        right: 20px;
    }

    .clog-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .clog-card {
        padding: 28px 18px;
        border-radius: 12px;
    }

    .clog-card-logo {
        width: 210px;
    }

    .clog-card-title {
        font-size: 22px;
    }
}
