
/* =========================================
   1. ROOT VARIABLES
========================================= */
:root {
    --blue: #0789ec;
    --deep: #06477f;
    --ink: #172331;
    --muted: #788391;
    --field: #f1f3f5;
}

/* =========================================
   2. GLOBAL RESET
========================================= */
* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 28px 16px;
    display: grid;
    place-items: center;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(ellipse at 19% 8%, rgba(0,160,255,.5), transparent 34%),
        radial-gradient(ellipse at 90% 28%, rgba(0,115,205,.35), transparent 35%),
        linear-gradient(145deg, #087bd2, #0069b8 48%, #034574);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

/* =========================================
   3. PAGE LAYOUT
========================================= */
.page {
    width: min(100%, 1000px);
    position: relative;
    padding: 18px 0;
    isolation: isolate;
}

/* =========================================
   4. MAIN CARD
========================================= */
.card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 70px #001e4147;
}

/* =========================================
   5. WELCOME / BRAND SECTION
========================================= */
.welcome {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    color: white;
    background: linear-gradient(
        145deg,
        #0789ed,
        #0560a9 56%,
        #073d70
    );
}

.welcome::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 440px;
    height: 650px;
    top: -75px;
    right: -305px;
    border-radius: 50%;
    background: #fff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 45px;
}

.brand img {
    max-width: 210px;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: .85;
}

.welcome h2 {
    margin: 8px 0 12px;
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: 1px;
}

.welcome h3 {
    font-size: 13px;
    letter-spacing: 1px;
}

.copy {
    max-width: 320px;
    color: #ffffffcf;
    font-size: 12px;
    line-height: 1.9;
}

.foot {
    margin-top: 35px;
    font-size: 10px;
    color: #ffffffb8;
    letter-spacing: .5px;
}

/* =========================================
   6. DECORATIVE ELEMENTS
========================================= */
.bubble {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.b1 {
    width: 180px;
    height: 180px;
    left: -45px;
    bottom: -70px;
    background: linear-gradient(135deg, #078ded, #0562ae);
}

.b2 {
    width: 145px;
    height: 145px;
    right: 5px;
    bottom: 25px;
    background: linear-gradient(140deg, #078ded, #04518d);
    box-shadow: inset -12px -12px 22px #00235033;
}

.b3 {
    width: 110px;
    height: 110px;
    right: -55px;
    bottom: -45px;
    background: linear-gradient(140deg, #0798f7, #0065b7);
}

.deco {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.cube {
    width: 65px;
    height: 65px;
    right: 4%;
    top: -5px;
    border-radius: 14px;
    transform: rotate(18deg);
    background: linear-gradient(135deg, #2aa6ff, #0755a2);
}

.ring {
    width: 70px;
    height: 45px;
    left: -15px;
    bottom: 2px;
    border: 12px solid #0c90e7;
    border-radius: 50%;
    transform: rotate(-30deg);
}

/* =========================================
   7. FORM PANEL
========================================= */
.panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px clamp(24px, 4vw, 55px);
    min-width: 0;
}

.heading {
    text-align: center;
    margin-bottom: 22px;
}

.heading h1 {
    margin: 0 0 8px;
    font-size: 29px;
    letter-spacing: .3px;
}

.heading p {
    margin: 0;
    color: #89929c;
    font-size: 11px;
    line-height: 1.6;
}

.fields {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

/* =========================================
   8. INPUT FIELDS
========================================= */
.field {
    position: relative;
}

.field input {
    width: 100%;
    height: 43px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    background: var(--field);
    color: #26313c;
    font-size: 12px;
}

.field input:focus {
    background: #fff;
    border-color: #1688d7;
    box-shadow: 0 0 0 3px #0088dc1f;
}

.field input::placeholder {
    color: #7e8790;
}

.inline {
    display: flex;
    gap: 7px;
}

.inline input {
    min-width: 0;
    flex: 1;
}

/* =========================================
   9. BUTTONS
========================================= */
.mini {
    flex: 0 0 auto;
    border: 1px solid #cbd5df;
    border-radius: 7px;
    background: #fff;
    color: #06436d;
    font-size: 10px;
    font-weight: 700;
    padding: 0 10px;
}

.mini:disabled {
    opacity: .55;
    cursor: wait;
}

.primary {
    width: 100%;
    min-height: 44px;
    border: 1px solid #04375f;
    border-radius: 8px;
    color: white;
    background: #06477f;
    font-size: 13px;
    font-weight: 700;
    transition: .2s;
}

.primary:hover {
    background: #075b9d;
    transform: translateY(-1px);
}

.primary:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.google {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #20252b;
    border-radius: 8px;
    background: white;
    color: #252b32;
    font-size: 12px;
}

.google:hover {
    background: #f5f8fb;
    border-color: #087bd2;
}

.g {
    font-weight: 800;
    color: #4285f4;
    font-size: 16px;
}

/* =========================================
   10. LINKS AND OPTIONS
========================================= */
.text-link {
    border: 0;
    background: none;
    padding: 0;
    color: #06436d;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
}

.text-link:hover {
    text-decoration: underline;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: #69727c;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;
}

.remember input,
.terms input {
    accent-color: #06477f;
}

.terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #68727d;
    font-size: 10px;
    line-height: 1.5;
}

.terms input {
    margin-top: 2px;
}

/* =========================================
   11. DIVIDER AND SWITCH
========================================= */
.or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7b838b;
    font-size: 10px;
}

.or::before,
.or::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #d9dde1;
}

.switch {
    text-align: center;
    margin: 18px 0 0;
    color: #858d95;
    font-size: 10px;
}

/* =========================================
   12. STATUS AND MESSAGES
========================================= */
.status {
    margin: 0;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.status:not(:empty) {
    margin-top: 8px;
}

.error {
    color: #b42335;
}

.success {
    color: #147447;
}

.verify-note {
    font-size: 10px;
    line-height: 1.5;
    color: #77818b;
    margin: 0;
}

.hidden {
    display: none !important;
}

/* =========================================
   13. TABLET AND MOBILE RESPONSIVE
========================================= */
@media (max-width: 760px) {
    body {
        padding: 12px;
    }

    .card {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: auto;
        border-radius: 17px;
    }

    .welcome {
        padding: 24px 28px 30px;
        min-height: 190px;
    }

    .welcome::after {
        width: 220px;
        height: 340px;
        top: -70px;
        right: -170px;
    }

    .brand {
        margin-bottom: 18px;
    }

    .brand img {
        max-height: 42px;
        max-width: 175px;
    }

    .eyebrow {
        font-size: 9px;
        margin: 0;
    }

    .welcome h2 {
        font-size: 28px;
        margin: 6px 0;
    }

    .welcome h3 {
        font-size: 10px;
        margin: 0 0 8px;
    }

    .copy {
        font-size: 10px;
        line-height: 1.6;
        margin: 0;
        max-width: 280px;
    }

    .foot {
        display: none;
    }

    .b1 {
        width: 100px;
        height: 100px;
        left: auto;
        right: 20px;
        bottom: -45px;
    }

    .b2 {
        width: 60px;
        height: 60px;
        right: 95px;
        bottom: -22px;
    }

    .b3 {
        width: 65px;
        height: 65px;
    }

    .panel {
        padding: 27px 25px 30px;
    }

    .heading {
        margin-bottom: 18px;
    }

    .heading h1 {
        font-size: 26px;
    }

    .cube {
        width: 42px;
        height: 42px;
        right: -3px;
    }

    .ring {
        width: 48px;
        height: 32px;
        border-width: 9px;
    }
}

/* =========================================
   14. SMALL MOBILE DEVICES
========================================= */
@media (max-width: 360px) {
    .panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    .inline {
        gap: 5px;
    }

    .mini {
        padding: 0 7px;
    }
}
