/* =====================================================================
   V6 Auto Centre — Registration (Theme 2026)
   Modern, fully responsive sign-up screen. Self-contained and premium
   even without the background photo. Class names match the Blade markup
   exactly — pure presentation, no markup/logic changes.
   Single source of truth: register-glass.css is now a no-op stub.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
    --v6-brand: #3eb075;
    --v6-brand-2: #69bf70;
    --v6-grad: linear-gradient(135deg, #3eb075 0%, #69bf70 100%);
    --v6-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body { height: 100%; }

/* ---------- Page frame ------------------------------------------- */
.register {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    padding: clamp(12px, 2vw, 22px);
    background:
        radial-gradient(900px 600px at 85% 115%, rgba(105, 191, 112, 0.35), transparent 60%),
        radial-gradient(700px 500px at 10% -10%, rgba(62, 176, 117, 0.28), transparent 55%),
        linear-gradient(160deg, #07261b 0%, #0c3a26 45%, #08221a 100%);
}

/* ---------- Background panel ------------------------------------- */
.register-main-div {
    position: relative;
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: calc(100vh - 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(72px, 8vw, 96px) clamp(20px, 5vw, 56px) clamp(40px, 5vw, 56px);
    border-radius: 24px;
    background-image: url('/image/login_back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.register-main-div::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 82% 118%, rgba(62, 176, 117, 0.30), transparent 60%),
        linear-gradient(135deg, rgba(3, 20, 14, 0.80), rgba(3, 20, 14, 0.48));
    pointer-events: none;
}

/* ---------- Logo ------------------------------------------------- */
.register-logo-img {
    position: absolute;
    top: clamp(16px, 3vw, 28px);
    left: clamp(16px, 3vw, 30px);
    z-index: 3;
}
.register-logo-img img {
    margin-left: 0 !important;
    width: clamp(96px, 11vw, 150px);
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

/* ---------- Content grid (hero + card) --------------------------- */
.register-main-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    max-width: 1180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(28px, 5vw, 70px);
    flex-wrap: wrap;
    padding: 0;
}

/* ---------- Hero ------------------------------------------------- */
.register-left-div {
    flex: 1 1 300px;
    min-width: 0;
    color: #fff;
    font-weight: 800;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.5px;
    overflow-wrap: break-word;
    word-break: break-word;
    animation: v6In 0.6s var(--v6-ease) both;
}
.register-left-div span:first-child {
    color: rgba(255, 255, 255, 0.92);
    -webkit-text-stroke: 0;
}
.welcome-header {
    display: inline-block;
    margin-top: 6px;
    background: linear-gradient(120deg, #8ee0a0 0%, #69bf70 55%, #3eb075 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Glass card ------------------------------------------- */
.register-right-div {
    flex: 1 1 560px;
    width: 100%;
    min-width: 0;
    max-width: 620px;
    padding: clamp(26px, 3.2vw, 38px) clamp(22px, 3vw, 36px);
    border-radius: 22px;
    background: rgba(13, 27, 22, 0.55);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: v6In 0.6s var(--v6-ease) 0.08s both;
}

.right-div-header { color: #fff; margin-bottom: 22px; }
.right-div-header span {
    display: block;
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

/* ---------- Form: 2-up responsive grid -------------------------- */
.register-input-div { margin-top: 4px; }

.main-input-div > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin-bottom: 16px;
}
.main-input-div > div > div { min-width: 0; }

.register-input-div input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.22s var(--v6-ease), box-shadow 0.22s var(--v6-ease), background 0.22s var(--v6-ease);
}
.register-input-div input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}
.register-input-div input:focus {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--v6-brand-2);
    box-shadow: 0 0 0 4px rgba(105, 191, 112, 0.22);
}
.register-input-div input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px rgba(13, 27, 22, 0.92) inset;
    caret-color: #fff;
}

.text-danger {
    display: block;
    margin-top: 5px;
    font-size: 11px !important;
    color: #ffb4b4 !important;
}

/* ---------- Submit ---------------------------------------------- */
.submit-button-div {
    margin-top: 8px;
    display: flex;
    justify-content: center;
}
.submit-button-div button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: var(--v6-grad);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 14px 28px -12px rgba(62, 176, 117, 0.8);
    transition: transform 0.22s var(--v6-ease), box-shadow 0.22s var(--v6-ease), filter 0.22s var(--v6-ease);
}
.submit-button-div button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    color: #fff;
    box-shadow: 0 20px 36px -14px rgba(62, 176, 117, 0.85);
}
.submit-button-div button:active { transform: translateY(0); }
.submit-button-div button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Footer link ----------------------------------------- */
.login-div {
    margin-top: 18px;
    font-size: 13px;
    display: flex;
    justify-content: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.75);
}
.login-div span:last-child a,
.login-div span:last-child { color: var(--v6-brand-2); font-weight: 600; }
.login-div a:hover { text-decoration: underline !important; }

/* ---------- Alerts ---------------------------------------------- */
.alert {
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ---------- Animations ------------------------------------------ */
@keyframes v6In {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Responsive ------------------------------------------ */
@media (max-width: 1080px) {
    .register-main-content {
        flex-direction: column;
        align-items: stretch;
        gap: 26px;
        max-width: 640px;
        margin: 0 auto;
    }
    .register-left-div {
        flex: none;
        width: 100%;
        text-align: center;
        font-size: clamp(32px, 7vw, 50px);
    }
    .register-right-div { flex: none; width: 100%; max-width: 100%; }
}

/* Small screens: stack the logo above the hero, single-column fields */
@media (max-width: 600px) {
    .register-main-div {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 26px 16px 30px;
    }
    .register-logo-img {
        position: static;
        align-self: center;
        margin: 0 0 18px;
    }
    .main-input-div > div {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }
}

@media (max-width: 480px) {
    .register { padding: 10px; }
    .register-main-div { border-radius: 20px; }
    .register-left-div { font-size: clamp(28px, 9vw, 38px); }
}

@media (prefers-reduced-motion: reduce) {
    .register-left-div,
    .register-right-div,
    .submit-button-div button { animation: none !important; transition: none !important; }
}
