/* =====================================================================
   V6 Auto Centre — Login (Theme 2026)
   Modern, fully responsive auth screen. Self-contained: looks premium
   even if the background photo is missing. Class names match the Blade
   markup exactly — pure presentation, no markup/logic changes.
   Single source of truth: auth-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-ink: #0f172a;
    --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 ------------------------------------------- */
.login {
    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 ------------------------------------- */
.login-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(64px, 8vw, 88px) clamp(20px, 5vw, 64px) clamp(36px, 5vw, 56px);
    border-radius: 24px;
    background-image: url('/image/login_back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* readability overlay on top of the photo */
.login-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.78), rgba(3, 20, 14, 0.45));
    pointer-events: none;
}

/* ---------- Logo ------------------------------------------------- */
.login-logo-img {
    position: absolute;
    top: clamp(16px, 3vw, 28px);
    left: clamp(16px, 3vw, 30px);
    z-index: 3;
}
.login-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) --------------------------- */
.login-main-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    max-width: 1120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(28px, 6vw, 80px);
    flex-wrap: wrap;
}

/* ---------- Hero ------------------------------------------------- */
.login-left-div {
    flex: 1 1 340px;
    min-width: 0;
    color: #fff;
    font-weight: 800;
    font-size: clamp(34px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.5px;
    overflow-wrap: break-word;
    word-break: break-word;
    animation: v6In 0.6s var(--v6-ease) both;
}
.login-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 ------------------------------------------- */
.login-right-div {
    flex: 0 1 430px;
    width: 100%;
    min-width: 0;
    max-width: 440px;
    padding: clamp(26px, 3.4vw, 38px) clamp(22px, 3vw, 34px);
    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:first-child {
    display: block;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    letter-spacing: -0.3px;
}
.right-div-header span:last-child {
    display: block;
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.66);
}

/* ---------- Form ------------------------------------------------- */
.login-input-div { margin-top: 4px; }

.email-div,
.password-div { position: relative; }
.password-div { margin-top: 16px; }

.login-input-div input[type="email"],
.login-input-div input[type="text"],
.login-input-div input[type="password"],
.email-div input,
.password-div input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    color: #fff;
    font-size: 14.5px;
    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);
}
.login-input-div input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13.5px;
}
.login-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);
}
.login-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: 6px;
    font-size: 11.5px !important;
    color: #ffb4b4 !important;
}

/* ---------- Remember / forgot ------------------------------------ */
.remember-forgot-div {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #fff;
}
.remember-me-input-div {
    display: flex;
    align-items: center;
}
.remember-me-input-div input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--v6-brand);
    cursor: pointer;
}
.remember-me-text { font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.forgot-password {
    color: var(--v6-brand-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.forgot-password:hover { text-decoration: underline; }

/* ---------- Submit ---------------------------------------------- */
.submit-button-div {
    margin-top: 22px;
    width: 100%;
    border-radius: 12px;
    background: var(--v6-grad);
    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:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 20px 36px -14px rgba(62, 176, 117, 0.85);
}
.submit-button-div:active { transform: translateY(0); }
.submit-button-div button {
    width: 100%;
    height: 50px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
}
.submit-button-div button:hover { color: #fff; }
.submit-button-div button:focus { box-shadow: none !important; }
.submit-button-div button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Footer link ----------------------------------------- */
.register-div {
    margin-top: 20px;
    font-size: 13px;
    display: flex;
    justify-content: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.75);
}
.register-div span:last-child a,
.register-div span:last-child {
    color: var(--v6-brand-2);
    font-weight: 600;
}
.register-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: 900px) {
    .login-main-content {
        flex-direction: column;
        align-items: stretch;
        gap: 26px;
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
    }
    .login-left-div {
        flex: none;
        width: 100%;
        text-align: center;
        font-size: clamp(32px, 8vw, 48px);
    }
    .login-right-div {
        flex: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Small screens: stack the logo above the hero so it never overlaps */
@media (max-width: 600px) {
    .login-main-div {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 26px 16px 30px;
    }
    .login-logo-img {
        position: static;
        align-self: center;
        margin: 0 0 18px;
    }
    .login-main-content { margin-top: 0; }
}

@media (max-width: 480px) {
    .login { padding: 10px; }
    .login-main-div { border-radius: 20px; }
    .login-left-div { font-size: clamp(30px, 9vw, 40px); }
    .login-input-div input,
    .email-div input,
    .password-div input,
    .submit-button-div,
    .submit-button-div button { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-left-div,
    .login-right-div,
    .submit-button-div { animation: none !important; transition: none !important; }
}
