/* =========================================================
   CARSCRAPY REGISTER PAGE
   Matches CarScrapy Login UI
========================================================= */

:root {
    --background: #eef3f2;
    --foreground: #102033;
    --ink: #102033;
    --muted: #71808c;
    --line: #dce5e5;

    --primary: #19b778;
    --primary-deep: #0e9360;

    --white: #ffffff;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

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

body {
    background: var(--background);
    color: var(--foreground);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.auth-shell {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(380px, 1fr)
        minmax(460px, 0.82fr);

    position: relative;

    overflow: hidden;
}


/* =========================================================
   LEFT PANEL
========================================================= */

.brand-panel {
    position: relative;

    min-height: 100vh;

    padding:
        44px
        clamp(36px, 7vw, 108px);

    color: var(--white);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(7, 25, 36, 0.90),
            rgba(7, 25, 36, 0.68)
        ),
        url("1786712510368.png");

    background-size: cover;
    background-position: center;
}


/* =========================================================
   BRAND
========================================================= */

.brand-lockup,
.mobile-brand-lockup {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.04em;

    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;

    border-radius: 12px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    background: var(--primary);

    color: #062c25;

    box-shadow:
        0 8px 22px
        rgba(25, 183, 120, 0.28);
}

.brand-mark svg {
    width: 23px;
    height: 23px;
}

.brand-accent {
    color: var(--primary);
}

.brand-panel .brand-accent {
    color: #76e6ae;
}


/* =========================================================
   LEFT HERO
========================================================= */

.brand-copy {
    max-width: 500px;

    margin: auto 0;

    padding:
        90px 0
        60px;
}

.eyebrow {
    display: flex;
    align-items: center;

    gap: 8px;

    margin: 0 0 20px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.eyebrow svg {
    width: 15px;
    height: 15px;

    flex-shrink: 0;
}

.brand-copy h1 {
    margin: 0;

    font-size:
        clamp(42px, 5vw, 68px);

    line-height: 0.98;

    letter-spacing: -0.065em;

    font-weight: 700;
}

.brand-copy h1 em {
    color: #83e8b3;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;
}

.hero-description {
    max-width: 430px;

    margin: 30px 0 0;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   LEFT FOOTER
========================================================= */

.panel-footer {
    display: flex;

    gap: 12px;

    align-items: center;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 11px;

    letter-spacing: 0.02em;
}

.footer-dot {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--primary);
}


/* =========================================================
   RIGHT PANEL
========================================================= */

.form-panel {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 48px;

    background:
        rgba(239, 244, 243, 0.97);
}


/* =========================================================
   FORM CONTENT
========================================================= */

.form-content {
    width: min(100%, 455px);
}


/* =========================================================
   MOBILE BRAND
========================================================= */

.mobile-brand-lockup {
    display: none;
}


/* =========================================================
   FORM HEADING
========================================================= */

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

.form-eyebrow {
    margin: 0 0 13px;

    color: var(--primary-deep);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.form-heading h2 {
    margin: 0;

    color: var(--ink);

    font-size: 32px;

    letter-spacing: -0.045em;

    line-height: 1.1;

    font-weight: 600;
}

.form-heading > p:last-child {
    margin:
        12px 0 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   FORM
========================================================= */

.register-form {
    display: grid;

    gap: 21px;
}


/* =========================================================
   FIELD
========================================================= */

.field-group {
    display: grid;

    gap: 9px;
}

.field-group label {
    color: var(--ink);

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   INPUT
========================================================= */

.input-wrap {
    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 56px;

    padding: 0 16px;

    border:
        1px solid var(--line);

    border-radius: 12px;

    background: var(--white);

    color: #9aa8af;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-wrap:focus-within {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(25, 183, 120, 0.12);
}

.input-icon {
    width: 20px;
    height: 20px;

    flex-shrink: 0;

    color: #9aa8af;
}

.input-wrap input {
    min-width: 0;

    width: 100%;

    height: 54px;

    border: 0;

    outline: 0;

    background: transparent;

    color: var(--ink);

    font-family: inherit;

    font-size: 14px;
}

.input-wrap input::placeholder {
    color: #aab5ba;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    display: grid;

    place-items: center;

    width: 30px;
    height: 30px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #98a6ad;

    cursor: pointer;
}

.password-toggle:hover {
    color: var(--primary-deep);
}

.password-toggle svg {
    width: 19px;
    height: 19px;
}


/* =========================================================
   MESSAGE
========================================================= */

.message {
    display: none;

    padding: 10px 12px;

    border-radius: 9px;

    font-size: 12px;

    font-weight: 600;
}

.message.success {
    display: block;

    background: #e8f8f0;

    color: #0e9360;
}

.message.error {
    display: block;

    background: #fdecec;

    color: #d6334c;
}


/* =========================================================
   REGISTER BUTTON
========================================================= */

.register-button {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;

    min-height: 56px;

    margin-top: 3px;

    border: 0;

    border-radius: 12px;

    background: var(--primary);

    color: #062c25;

    box-shadow:
        0 10px 22px
        rgba(25, 183, 120, 0.20);

    cursor: pointer;

    font-family: inherit;

    font-size: 14px;

    font-weight: 800;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.register-button:hover {
    background: #25c987;

    transform: translateY(-2px);

    box-shadow:
        0 14px 26px
        rgba(25, 183, 120, 0.25);
}

.register-button:active {
    transform: translateY(0);
}

.register-button:disabled {
    cursor: wait;

    opacity: 0.75;

    transform: none;
}

.button-arrow {
    width: 20px;
    height: 20px;
}

.register-button.loading .button-arrow {
    display: none;
}


/* =========================================================
   SPINNER
========================================================= */

.spinner {
    display: none;

    width: 17px;
    height: 17px;

    border:
        2px solid
        rgba(6, 44, 37, 0.30);

    border-top-color:
        #062c25;

    border-radius: 50%;

    animation:
        spin 0.7s linear infinite;
}

.register-button.loading .spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   SECURITY
========================================================= */

.secure-note {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 21px;

    color: #84929a;

    font-size: 11px;

    text-align: center;
}

.secure-note svg {
    width: 17px;
    height: 17px;

    flex-shrink: 0;

    color: var(--primary-deep);
}


/* =========================================================
   LOGIN PROMPT
========================================================= */

.login-prompt {
    margin:
        34px 0 0;

    color: var(--muted);

    text-align: center;

    font-size: 13px;
}

.login-prompt a {
    margin-left: 4px;

    color: var(--primary-deep);

    text-decoration: none;

    font-weight: 700;
}

.login-prompt a:hover {
    text-decoration: underline;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 820px) {

    .auth-shell {
        display: block;

        min-height: 100vh;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;

        padding:
            36px 24px;

        background:
            linear-gradient(
                rgba(7, 25, 36, 0.78),
                rgba(7, 25, 36, 0.78)
            ),
            url("scrap-yard-bg.jpg");

        background-size: cover;

        background-position: center;
    }

    .form-content {
        width: min(100%, 420px);

        padding:
            30px 26px;

        border-radius: 18px;

        background:
            rgba(239, 244, 243, 0.97);

        box-shadow:
            0 25px 60px
            rgba(0, 0, 0, 0.30);
    }

    .mobile-brand-lockup {
        display: inline-flex;

        margin-bottom: 46px;

        color: var(--ink);
    }

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


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .form-panel {
        padding:
            24px 16px;
    }

    .form-content {
        padding:
            26px 20px;

        border-radius: 16px;
    }

    .mobile-brand-lockup {
        margin-bottom: 38px;
    }

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

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

    .register-form {
        gap: 18px;
    }

    .input-wrap {
        min-height: 53px;
    }

    .input-wrap input {
        height: 51px;
    }

    .register-button {
        min-height: 53px;
    }
}
