@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --brand-dark-green: #204329;
    --brand-primary-green: #2d5c39;
    --brand-hover-green: #23492d;
    --bg-tint: #f6faf6;
    --border-color: #798a7c;
    --text-primary: #172b1d;
    --text-secondary: #526456;
    --text-muted: #526456;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    zoom: 1.25;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-tint);
    display: flex;
    flex-direction: column;
}

/* Fullscreen Edge-to-Edge Container - Non-Scrollable 1-Page Layout */
.main-container {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}




/* Left Showcase Panel - 40% Full Screen */
.showcase-panel {
    position: relative;
    width: 40%;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    background-color: #17241a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(20px, 2.5vh, 32px) clamp(22px, 2.8vw, 36px);
    overflow: hidden;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    touch-action: pan-y;
    user-select: none;
}

.showcase-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Slides Track & Smooth Infinite Looping Sliding Animation */
.slides-track {
    position: absolute;
    inset: 0;
    display: flex;
    width: 500%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    transform: translateX(-20%);
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.slide-item {
    flex: 0 0 20%;
    width: 20%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 20%, rgba(12, 28, 17, 0.6) 55%, rgba(7, 18, 10, 0.9) 100%);
    z-index: 1;
}

.showcase-header,
.cursive-tagline,
.showcase-caption {
    position: relative;
    z-index: 2;
}

/* Upper-Left Agent Branding (Miriam Lobren Real Estate) */
.showcase-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.showcase-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.showcase-agent-title {
    font-size: clamp(24px, 3.2vh, 32px);
    font-weight: 800;
    color: #173822;
    line-height: 1.1;
    letter-spacing: -0.4px;
    margin: 0;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.75);
}

.showcase-agent-sub {
    font-size: clamp(11.5px, 1.45vh, 13.5px);
    font-weight: 700;
    color: #2d5c39;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* Legacy brand badge backward-compatibility */
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: none;
}

.brand-text h1 {
    font-size: clamp(24px, 3.2vh, 32px);
    font-weight: 800;
    color: #173822;
    line-height: 1.1;
    letter-spacing: -0.4px;
    margin: 0;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.75);
}

.brand-text h2 {
    font-size: clamp(11.5px, 1.45vh, 13.5px);
    font-weight: 700;
    color: #2d5c39;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* Middle Cursive Tagline on Left Panel - Vertically Centered & Left-Aligned */
.cursive-tagline {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(34px, 4.8vh, 46px);
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
    text-align: left;
    width: 100%;
    margin: auto 0;
    position: relative;
    z-index: 2;
}

/* Lower Left Showcase Bottom Container */
.showcase-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    width: 100%;
}

.showcase-caption {
    text-align: left;
    margin-bottom: 10px;
}

.showcase-caption-title {
    font-size: clamp(16px, 2.1vh, 19px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.2px;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.showcase-caption-desc {
    font-size: clamp(10.5px, 1.3vh, 12px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
    max-width: 95%;
}

/* Lower Left Slide Indicator Dots */
/* Lower Left Slide Indicator Dots */
.dots-container {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 9px;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 4px;
}

.dots-container .dot,
.dot {
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    max-width: 9px !important;
    min-height: 9px !important;
    max-height: 9px !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, transform 0.2s ease;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    flex-shrink: 0 !important;
    display: inline-block !important;
    line-height: 0 !important;
    font-size: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

@media (hover: hover) and (pointer: fine) {
    .dots-container .dot:hover,
    .dot:hover {
        background-color: rgba(255, 255, 255, 0.85);
        transform: scale(1.15);
    }
}

.dots-container .dot.active,
.dot.active {
    background-color: #22c55e !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 9px !important;
    min-height: 9px !important;
    max-height: 9px !important;
    border-radius: 12px !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6) !important;
    transform: none !important;
}

/* Right Form Panel - 60% Full Screen */
.form-panel {
    flex: 1;
    width: 60%;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(20px, 3vh, 36px) clamp(24px, 4vw, 48px) 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 92, 57, 0.25) transparent;
}

.form-panel::-webkit-scrollbar {
    width: 6px;
}

.form-panel::-webkit-scrollbar-thumb {
    background-color: rgba(45, 92, 57, 0.25);
    border-radius: 4px;
}

/* Form Container - UrbanScope remains at top (steady across Login & Register) */
.form-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    margin: 12px auto 0;
}

.form-container.register-container {
    max-width: 480px;
    margin: 12px auto 0;
}

.register-container .form-brand-header {
    margin-bottom: 14px;
}

.register-container .welcome-header {
    margin-top: clamp(28px, 4.5vh, 44px);
    margin-bottom: 18px;
}

.register-container .welcome-header h1 {
    font-size: 32px;
}

.register-container .auth-form {
    gap: 10px;
}

.register-container .form-row-2col {
    gap: 10px;
}

.register-container .form-group label {
    font-size: 12px;
    margin-bottom: 4px;
}

.register-container .input-box input {
    height: 42px;
}

.register-container .btn-submit {
    height: 44px;
    margin-top: 3px;
}

.register-container .divider {
    margin: 12px 0;
}

.register-container .btn-google {
    height: 42px;
}

.register-container .register-prompt {
    margin-top: 12px;
}

.register-container .form-footer {
    margin-top: clamp(20px, 3vh, 34px);
    padding-top: 12px;
}

/* Top Navigation Bar in Form Panel */
.form-top-bar {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2d5c39;
    text-decoration: none;
    transition: transform 0.2s, color 0.2s;
}
@media (hover: hover) and (pointer: fine) {
    .back-home-link:hover { transform: translateX(-3px); color: #1a3b23; }
}

/* Form Content Wrapper */
.form-wrapper {
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.form-wrapper.register-wrapper {
    padding: 0;
}

/* Brand Logo directly ABOVE Login / Signup text - Clean UrbanScope Only */
.form-brand-header {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.form-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .form-brand-badge:hover {
        transform: translateY(-2px);
        opacity: 0.92;
    }
}

.form-brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(32, 67, 41, 0.16));
}

.form-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.form-brand-text .brand-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-dark-green);
    line-height: 1;
    letter-spacing: -0.6px;
}

.welcome-header {
    text-align: center;
    margin-top: clamp(48px, 7.5vh, 68px);
    margin-bottom: 24px;
}


.welcome-header h1 {
    font-size: 35px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.6px;
}

/* Forms & Inputs */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #233626;
    margin-bottom: 5px;
}

.input-box input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 13.5px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-box input:focus {
    border-color: var(--brand-primary-green);
    box-shadow: 0 0 0 3px rgba(45, 92, 57, 0.16);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    margin-top: 1px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 12.5px;
}

.remember-label input {
    accent-color: var(--brand-primary-green);
    width: 15px;
    height: 15px;
}

.forgot-link {
    text-decoration: none;
    color: var(--brand-primary-green);
    font-size: 12.5px;
    font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
    .forgot-link:hover {
        text-decoration: underline;
        color: var(--brand-dark-green);
    }
}

.btn-submit {
    width: 100%;
    height: 45px;
    background-color: var(--brand-primary-green);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 3px;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(45, 92, 57, 0.2);
}

@media (hover: hover) and (pointer: fine) {
    .btn-submit:hover {
        background-color: var(--brand-hover-green);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(45, 92, 57, 0.28);
    }
}

.btn-submit:active {
    transform: translateY(0);
}

/* Divider & Social Login */
.divider {
    position: relative;
    text-align: center;
    margin: 16px 0;
}


.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #dce7de;
}

.divider span {
    position: relative;
    background-color: #ffffff;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.btn-google {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ffffff;
    border: 1.5px solid #c2d2c5;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #283a2d;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .btn-google:hover {
        background-color: #f6faf6;
        border-color: #9cb2a1;
        transform: translateY(-1px);
    }
}

.btn-google:active {
    transform: translateY(0);
}

.btn-google:disabled,
.btn-google.is-loading {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.google-auth-banner {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
    border: 1px solid #d1ddd3;
    background-color: #f4f9f5;
    color: #1f3b26;
}

.google-auth-banner.is-setup {
    background-color: #fffbeb;
    border-color: #f5d08a;
    color: #7c4d08;
}

.google-auth-banner.is-error {
    background-color: #fdeeec;
    border-color: #e9b8b3;
    color: #9e2a1f;
}

.register-prompt {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}


/* Bottom panel footer */
.form-footer {
    width: 100%;
    margin-top: clamp(26px, 4.5vh, 44px);
    padding-top: 14px;
    border-top: 1px solid rgba(121, 138, 124, 0.18);
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}


.form-footer p {
    margin-bottom: 2px;
    color: var(--text-secondary);
}

.form-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 10.5px;
}

.register-prompt a {
    text-decoration: none;
    color: var(--brand-primary-green);
    font-weight: 700;
    margin-left: 5px;
}

@media (hover: hover) and (pointer: fine) {
    .register-prompt a:hover {
        text-decoration: underline;
        color: var(--brand-dark-green);
    }
}

/* ==========================================
   Responsive Layouts: Mobile, Tablet & Landscape
   ========================================== */

/* 1. TABLET & DESKTOP VIEW (2-column side-by-side when viewport has sufficient width & height) */
@media (min-width: 769px) and (min-height: 540px) {
    html {
        height: 100%;
        overflow: hidden;
    }
    body {
        height: 100%;
        overflow: hidden;
    }
    .main-container {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }
    .showcase-panel {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 40% !important;
        height: 100% !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        border-radius: 0 20px 20px 0 !important;
        cursor: pointer;
        user-select: none;
        overflow: hidden;
    }
    .showcase-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .cursive-tagline {
        display: block !important;
        margin: auto 0 !important;
        text-align: left !important;
    }
    .showcase-bottom {
        display: flex !important;
        flex-direction: column !important;
    }
    .form-panel {
        width: 60% !important;
        height: 100% !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* 2. TABLET PORTRAIT REFINEMENT (e.g. iPad 769px-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    html {
        zoom: 1; /* Crisp 1:1 scaling on tablet */
    }
    .showcase-panel {
        padding: clamp(22px, 3vh, 32px) clamp(18px, 2.5vw, 28px);
    }
    .showcase-agent-title {
        font-size: clamp(22px, 2.6vw, 28px);
    }
    .showcase-agent-sub {
        font-size: clamp(10.5px, 1.3vw, 12px);
    }
    .cursive-tagline {
        font-size: clamp(30px, 4vw, 40px);
    }
    .showcase-caption-title {
        font-size: clamp(15px, 2vw, 18px);
    }
    .showcase-caption-desc {
        font-size: clamp(10.5px, 1.3vw, 12px);
    }
    .form-panel {
        padding: clamp(24px, 3.5vh, 40px) clamp(20px, 3vw, 36px) 20px;
    }
    .form-container,
    .form-container.register-container {
        max-width: 440px;
    }
}

/* 3. COMPACT DESKTOP/TABLET LANDSCAPE (width >= 769px and height 540px-640px) */
@media (min-width: 769px) and (min-height: 540px) and (max-height: 640px) {
    html {
        zoom: 1;
    }
    .showcase-panel {
        padding: 12px 18px 10px;
    }
    .showcase-agent-title {
        font-size: 20px;
    }
    .showcase-agent-sub {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
    .cursive-tagline {
        font-size: 22px;
        margin: auto 0;
        line-height: 1.15;
    }
    .showcase-caption {
        margin-bottom: 4px;
    }
    .showcase-caption-title {
        font-size: 13px;
        margin-bottom: 2px;
    }
    .showcase-caption-desc {
        font-size: 9.5px;
        line-height: 1.3;
    }
    .dots-container {
        margin-top: 3px;
        margin-bottom: 2px;
        gap: 6px;
    }
    .dots-container .dot,
    .dot {
        width: 7px !important;
        height: 7px !important;
        min-width: 7px !important;
        max-width: 7px !important;
        min-height: 7px !important;
        max-height: 7px !important;
    }
    .dots-container .dot.active,
    .dot.active {
        width: 20px !important;
        min-width: 20px !important;
        max-width: 20px !important;
        height: 7px !important;
        min-height: 7px !important;
        max-height: 7px !important;
    }
    .form-panel {
        padding: 10px 18px 12px;
    }
    .form-container,
    .form-container.register-container {
        margin: 4px auto 0;
        max-width: 440px;
    }
    .form-top-bar {
        margin-bottom: 4px;
    }
    .back-home-link {
        font-size: 12.5px;
    }
    .form-brand-header {
        margin-bottom: 4px;
    }
    .form-brand-logo {
        width: 34px;
        height: 34px;
    }
    .form-brand-text .brand-title {
        font-size: 22px;
    }
    .welcome-header {
        margin-top: 0 !important;
        margin-bottom: 6px !important;
    }
    .welcome-header h1 {
        font-size: 19px;
    }
    .welcome-header p {
        font-size: 11px;
    }
    .auth-form {
        gap: 6px;
    }
    .form-row-2col {
        gap: 8px;
    }
    .form-group label {
        font-size: 11px;
        margin-bottom: 2px;
    }
    .input-box input {
        height: 35px;
        font-size: 12.5px;
        padding: 0 10px;
    }
    .form-options {
        font-size: 11px;
        margin-top: 0;
    }
    .btn-submit {
        height: 36px;
        font-size: 13px;
        margin-top: 2px;
    }
    .divider {
        margin: 6px 0;
    }
    .btn-google {
        height: 35px;
        font-size: 12px;
    }
    .register-prompt {
        margin-top: 6px;
        font-size: 11px;
    }
    .form-footer {
        margin-top: 8px !important;
        padding-top: 6px !important;
        font-size: 10px;
    }
}

/* 4. MOBILE & SHORT-SCREEN VIEW (Phones & small tablets <= 768px, or phone landscape max-height <= 539px) */
@media (max-width: 768px), (max-height: 539px) {
    html {
        zoom: 1;
        height: auto;
        overflow-y: auto;
    }
    body {
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .main-container {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: none;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    /* Showcase card at top of mobile view */
    .showcase-panel {
        width: 100%;
        height: clamp(200px, 32vh, 275px);
        min-height: 190px;
        max-height: 280px;
        padding: 18px 18px 14px;
        border-radius: 0 0 20px 20px;
        justify-content: space-between;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    }

    /* User request: in mobile view remove this part on the top (Miriam Lobren Real Estate) */
    .showcase-header {
        display: none !important;
    }

    /* User request: in mobile view, make Better Homes... on the upper left align */
    .cursive-tagline {
        font-size: clamp(26px, 6.8vw, 32px);
        line-height: 1.15;
        margin: 0 0 auto 0;
        text-align: left;
        align-self: flex-start;
        width: 100%;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    }

    /* Bottom caption inside mobile showcase */
    .showcase-bottom {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 0;
    }

    .showcase-caption {
        display: block;
        text-align: left;
        margin-bottom: 6px;
    }

    .showcase-caption-title {
        font-size: 14.5px;
        line-height: 1.25;
        margin: 0 0 3px 0;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    }

    .showcase-caption-desc {
        font-size: 10.5px;
        line-height: 1.35;
        max-width: 98%;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    }

    /* Carousel dots: fix stretching from common.css button min-height */
    .dots-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 6px;
        margin-bottom: 2px;
    }

    .dots-container .dot,
    .dot {
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
        max-width: 8px !important;
        min-height: 8px !important;
        max-height: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 50% !important;
        line-height: 0 !important;
        font-size: 0 !important;
        flex-shrink: 0 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
        background-color: rgba(255, 255, 255, 0.5) !important;
    }

    .dots-container .dot.active,
    .dot.active {
        width: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;
        height: 8px !important;
        min-height: 8px !important;
        max-height: 8px !important;
        border-radius: 10px !important;
        background-color: #22c55e !important;
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.7) !important;
    }

    /* Form panel below showcase */
    .form-panel {
        width: 100%;
        height: auto;
        max-height: none;
        min-height: auto;
        padding: 24px 20px 36px;
        overflow-y: visible;
        background-color: #ffffff;
    }

    .form-container,
    .form-container.register-container {
        max-width: 440px;
        margin: 0 auto;
    }

    .form-top-bar {
        margin-bottom: 10px;
    }

    .back-home-link {
        font-size: 13.5px;
    }

    .form-brand-header {
        margin-bottom: 12px;
    }

    .form-brand-logo {
        width: 42px;
        height: 42px;
    }

    .form-brand-text .brand-title {
        font-size: 28px;
    }

    .welcome-header {
        margin-top: 0 !important;
        margin-bottom: 18px !important;
    }

    .welcome-header h1 {
        font-size: 24px;
    }

    .welcome-header p {
        font-size: 12.5px;
    }

    .auth-form {
        gap: 12px;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    /* 16px font-size prevents iOS browser auto-zoom */
    .input-box input {
        height: 44px;
        font-size: 16px;
        padding: 0 14px;
    }

    .form-options {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
        margin-top: 2px;
    }

    .btn-submit {
        height: 44px;
        font-size: 14.5px;
        margin-top: 4px;
    }

    .divider {
        margin: 12px 0;
    }

    .btn-google {
        height: 42px;
        font-size: 13px;
    }

    .register-prompt {
        margin-top: 14px;
        font-size: 12px;
    }

    .form-footer {
        margin-top: 24px !important;
        padding-top: 12px !important;
        font-size: 11px;
    }
}
/* ==========================================
   Registration Page Additions
   ========================================== */
.input-box.has-toggle {
    position: relative;
}

.input-box.has-toggle input {
    padding-right: 46px;
}

.toggle-pw {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .toggle-pw:hover {
        color: var(--brand-primary-green);
        background-color: rgba(45, 92, 57, 0.08);
    }
}

/* Password strength meter */
.strength-meter {
    margin-top: 3px;
}

.strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.strength-bars span {
    height: 3px;
    border-radius: 3px;
    background-color: #d5e0d7;
    transition: background-color 0.25s ease;
}

.strength-meter small,
.match-hint {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
    color: var(--text-muted);
}

.strength-meter[data-level="1"] .strength-bars span:nth-child(-n+1) { background-color: #d9534f; }
.strength-meter[data-level="2"] .strength-bars span:nth-child(-n+2) { background-color: #e8a33d; }
.strength-meter[data-level="3"] .strength-bars span:nth-child(-n+3) { background-color: #7fb069; }
.strength-meter[data-level="4"] .strength-bars span:nth-child(-n+4) { background-color: #2d5c39; }

.strength-meter[data-level="1"] small { color: #c0392b; }
.strength-meter[data-level="2"] small { color: #b97a14; }
.strength-meter[data-level="3"] small,
.strength-meter[data-level="4"] small { color: var(--brand-primary-green); }

.match-hint:empty { display: none; }
.match-hint.ok { color: var(--brand-primary-green); }
.match-hint.error { color: #c0392b; }

/* Terms checkbox */
.terms-label {
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 1px;
    padding: 4px 6px;
    margin-left: -6px;
    margin-right: -6px;
    border-radius: 7px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

@media (hover: hover) and (pointer: fine) {
    .terms-label:hover {
        background-color: #f4f9f5;
    }
}

.terms-label.is-accepted {
    background-color: #eef7f0;
    border-color: #c8e0ce;
    color: var(--brand-dark-green);
}

.terms-label input {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.inline-link {
    color: var(--brand-primary-green);
    font-weight: 600;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .inline-link:hover {
        text-decoration: underline;
    }
}

input:user-invalid {
    border-color: #c0392b;
}

/* ==========================================
   Terms of Service & Privacy Policy Modal
   ========================================== */
body.terms-modal-open {
    overflow: hidden !important;
}

.terms-modal-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 20, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.terms-modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.terms-modal-card {
    background: #ffffff;
    border: 1px solid #d5e3d8;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(12, 30, 18, 0.28);
    width: 100%;
    max-width: 580px;
    height: min(86%, 540px);
    max-height: calc(100% - 24px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
    transform: scale(0.94) translateY(10px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.terms-modal-overlay.open .terms-modal-card {
    transform: scale(1) translateY(0);
}

.terms-modal-header {
    flex-shrink: 0;
    background: linear-gradient(180deg, #f0f7f2 0%, #ffffff 100%);
    border-bottom: 1px solid #e3ede6;
}

.terms-modal-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px 13px;
}

.terms-modal-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e6f2e9;
    border: 1px solid #c6dfd0;
    color: var(--brand-primary-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.terms-modal-heading {
    flex: 1;
    min-width: 0;
}

.terms-modal-heading h2 {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--brand-dark-green);
    line-height: 1.2;
    letter-spacing: -0.25px;
    margin: 0 0 2px;
}

.terms-modal-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
    margin: 0;
}

.terms-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f6f2;
    border: 1px solid #d4e2d7;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.terms-modal-close svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.terms-modal-overlay.open .terms-modal-close {
    animation: termsClosePop 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes termsClosePop {
    from { opacity: 0; transform: scale(0.55) rotate(-45deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@media (hover: hover) and (pointer: fine) {
    .terms-modal-close:hover {
        background: #fee2e2;
        border-color: #fca5a5;
        color: #dc2626;
        transform: scale(1.06);
        box-shadow: 0 3px 10px rgba(220, 38, 38, 0.16);
    }
}

@media (hover: hover) and (pointer: fine) {
    .terms-modal-close:hover svg {
        transform: rotate(90deg);
    }
}

.terms-modal-close:active {
    transform: scale(0.92);
}

/* Top Reading Progress Bar */
.terms-scroll-progress {
    width: 100%;
    height: 4px;
    background: #e6efe8;
    overflow: hidden;
}

.terms-scroll-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2d5c39 0%, #22c55e 100%);
    border-radius: 0 3px 3px 0;
    transition: width 0.12s ease-out;
}

/* Scrollable Agreement Document Body */
.terms-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 22px 20px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 92, 57, 0.38) #f1f6f2;
    outline: none;
}

.terms-modal-body::-webkit-scrollbar {
    width: 7px;
}

.terms-modal-body::-webkit-scrollbar-track {
    background: #f1f6f2;
    border-radius: 4px;
}

.terms-modal-body::-webkit-scrollbar-thumb {
    background-color: rgba(45, 92, 57, 0.38);
    border-radius: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .terms-modal-body::-webkit-scrollbar-thumb:hover {
        background-color: rgba(45, 92, 57, 0.6);
    }
}

.terms-part-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    background: #eef6f0;
    border: 1px solid #cfe2d3;
    border-radius: 10px;
    margin-bottom: 14px;
}

.terms-part-banner.privacy-banner {
    margin-top: 20px;
    background: #f2f7f4;
}

.terms-part-pill {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--brand-dark-green);
}

.terms-part-meta {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--brand-primary-green);
}

.terms-doc-section {
    margin-bottom: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid #eef4ef;
}

.terms-doc-section:last-of-type {
    border-bottom: none;
    padding-bottom: 4px;
}

.terms-doc-section h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark-green);
    margin: 0 0 6px;
    line-height: 1.35;
}

.terms-doc-section p {
    font-size: 12px;
    line-height: 1.6;
    color: #2c3e31;
    margin: 0 0 8px;
}

.terms-doc-section p:last-child {
    margin-bottom: 0;
}

.terms-doc-section ul {
    margin: 4px 0 0 18px;
    padding: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #2c3e31;
}

.terms-doc-section li {
    margin-bottom: 5px;
}

.terms-doc-section code {
    font-family: inherit;
    font-weight: 700;
    font-size: 11.5px;
    background: #eef5ef;
    color: var(--brand-dark-green);
    padding: 1px 5px;
    border-radius: 4px;
}

.terms-end-callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 12px 14px;
    background: #eef7f0;
    border: 1px solid #c3dec9;
    border-left: 4px solid var(--brand-primary-green);
    border-radius: 10px;
}

.terms-end-callout svg {
    flex-shrink: 0;
    color: var(--brand-primary-green);
    margin-top: 2px;
}

.terms-end-callout p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: #1b3622;
}

/* Modal Footer: Scroll Requirement Hint + Actions */
.terms-modal-footer {
    flex-shrink: 0;
    background: #f8fbf9;
    border-top: 1px solid #e1ece4;
    padding: 11px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.terms-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #fffbeb;
    border: 1px solid #f6d58e;
    color: #8a5308;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.terms-scroll-hint svg {
    flex-shrink: 0;
}

.terms-scroll-hint .hint-icon-scroll {
    display: inline-block;
    animation: termsArrowBounce 1.4s ease-in-out infinite;
}

.terms-scroll-hint .hint-icon-ready {
    display: none;
}

@keyframes termsArrowBounce {
    0%, 100% { transform: translateY(-1px); }
    50% { transform: translateY(2px); }
}

.terms-scroll-hint.is-ready {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.terms-scroll-hint.is-ready .hint-icon-scroll {
    display: none;
}

.terms-scroll-hint.is-ready .hint-icon-ready {
    display: inline-block;
}

.terms-scroll-hint.pulse-attention {
    animation: termsHintShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes termsHintShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.terms-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.btn-terms-decline {
    height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1.5px solid #c6d4c9;
    background: #ffffff;
    color: #36493b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .btn-terms-decline:hover {
        background: #f2f6f3;
        border-color: #9cb0a1;
        color: #172b1d;
    }
}

.btn-terms-accept {
    height: 38px;
    padding: 0 22px;
    border-radius: 8px;
    border: none;
    background: var(--brand-primary-green);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(45, 92, 57, 0.24);
    transition: background-color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-terms-accept svg {
    flex-shrink: 0;
}

.btn-terms-accept .btn-icon-lock {
    display: none;
}

.btn-terms-accept .btn-icon-check {
    display: inline-block;
}

.btn-terms-accept:disabled {
    background: #cbd6ce;
    color: #6b7d70;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-terms-accept:disabled .btn-icon-lock {
    display: inline-block;
}

.btn-terms-accept:disabled .btn-icon-check {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .btn-terms-accept:not(:disabled):hover {
        background: var(--brand-hover-green);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(45, 92, 57, 0.32);
    }
}

.btn-terms-accept:not(:disabled):active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .terms-modal-overlay {
        padding: 12px;
    }

    .terms-modal-card {
        height: calc(100% - 16px);
        max-height: calc(100% - 16px);
        border-radius: 16px;
    }

    .terms-modal-header-main {
        padding: 13px 14px 11px;
        gap: 10px;
    }

    .terms-modal-heading h2 {
        font-size: 15px;
    }

    .terms-modal-body {
        padding: 15px 16px 18px;
    }

    .terms-modal-footer {
        padding: 10px 14px 14px;
    }

    .terms-modal-actions {
        width: 100%;
    }

    .btn-terms-decline,
    .btn-terms-accept {
        flex: 1;
        height: 42px;
        font-size: 13.5px;
    }
}

@media (max-height: 539px) {
    .terms-modal-overlay {
        padding: 8px 12px;
    }

    .terms-modal-card {
        height: calc(100% - 12px);
        max-height: calc(100% - 12px);
    }

    .terms-modal-header-main {
        padding: 9px 14px 8px;
    }

    .terms-modal-badge-icon {
        width: 30px;
        height: 30px;
    }

    .terms-modal-heading h2 {
        font-size: 14px;
    }

    .terms-modal-subtitle {
        font-size: 10px;
    }

    .terms-modal-footer {
        padding: 8px 14px 10px;
        gap: 6px;
    }

    .btn-terms-decline,
    .btn-terms-accept {
        height: 34px;
    }
}

/* ==========================================
   Admin Login Page Additions
   ========================================== */
.admin-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(45, 92, 57, 0.1);
    color: var(--brand-dark-green);
    border: 1px solid rgba(45, 92, 57, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.admin-security-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 10px;
    background-color: #ffffff;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    font-size: 10.5px;
    line-height: 1.35;
    color: var(--text-secondary);
}

.admin-security-card svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--brand-primary-green);
}

.admin-access-link {
    margin-top: 8px;
    text-align: center;
}

.admin-access-link a {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .admin-access-link a:hover {
        color: var(--brand-primary-green);
        text-decoration: underline;
    }
}

/* ---------- Login notice ---------- */

.auth-notice {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #eef5ef;
    border: 1px solid #c4dbc8;
    color: #1f4928;
    font-size: 0.8rem;
    line-height: 1.35;
    animation: noticeIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.auth-notice[hidden] { display: none; }
@keyframes noticeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* Email OTP dialog used during password registration and recovery. */
.otp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 32, 20, 0.64);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.otp-modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.otp-modal-card {
    position: relative;
    width: min(100%, 430px);
    margin: auto;
    padding: 32px;
    border: 1px solid #d9e6dc;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(12, 30, 18, 0.3);
    color: var(--text-primary);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.otp-modal-overlay.open .otp-modal-card {
    transform: translateY(0) scale(1);
}

.otp-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f6f2;
    color: #385441;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.otp-modal-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 15px;
    background: #e8f3ea;
    color: var(--brand-primary-green);
    font-size: 22px;
    font-weight: 800;
}

.otp-modal-card h2 {
    margin: 0 40px 8px 0;
    color: #203b29;
    font-size: 23px;
}

.otp-modal-copy {
    margin: 0 0 22px;
    color: #627269;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.otp-modal-copy strong {
    color: #244e31;
}

.otp-form label {
    display: block;
    margin-bottom: 7px;
    color: #31473a;
    font-size: 12px;
    font-weight: 700;
}

.otp-form input {
    width: 100%;
    height: 54px;
    padding: 0 14px;
    border: 1px solid #cbd9ce;
    border-radius: 11px;
    outline: none;
    background: #fbfdfb;
    color: #203b29;
    font: 700 22px/1 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 8px;
    text-align: center;
}

.otp-form input:focus {
    border-color: #4c825b;
    box-shadow: 0 0 0 3px rgba(76, 130, 91, 0.14);
}

.otp-form-message {
    min-height: 18px;
    margin: 8px 0 12px;
    color: #ad3c34;
    font-size: 12px;
    line-height: 1.45;
}

.otp-form-message.is-success {
    color: #287044;
}

.otp-form .btn-submit {
    width: 100%;
}

.otp-modal-resend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 17px;
    color: #758279;
    font-size: 11px;
    line-height: 1.5;
}

.otp-modal-resend button {
    flex: 0 0 auto;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--brand-primary-green);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.otp-modal-resend button:disabled {
    color: #9ba79e;
    cursor: not-allowed;
}

body.otp-modal-open {
    overflow: hidden !important;
}

@media (max-width: 600px) {
    .otp-modal-overlay {
        padding: 12px;
    }

    .otp-modal-card {
        padding: 26px 21px 22px;
        border-radius: 17px;
    }

    .otp-modal-resend {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* ==========================================================================
   Dark Mode & Soft Fade Animation for Auth Pages (login / register / forgot)
   ========================================================================== */
.form-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-toggle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #d5e2d8;
    background: #ffffff;
    color: var(--brand-primary-green);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
    .theme-toggle-btn:hover {
        background: #eef6f0;
        border-color: var(--brand-primary-green);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(45, 92, 57, 0.14);
    }
}

.theme-icon-wrap {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon-sun {
    opacity: 0;
    transform: rotate(75deg) scale(0.55);
    color: #fbbf24;
}

html.dark-mode .theme-icon-moon {
    opacity: 0;
    transform: rotate(-75deg) scale(0.55);
}

html.dark-mode .theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-fade-veil {
    display: none !important;
}

@keyframes urbanScopeThemeFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

html.theme-vt-snap,
html.theme-vt-snap *,
html.theme-vt-snap *::before,
html.theme-vt-snap *::after {
    transition: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

::view-transition-group(root) {
    animation-duration: 0.42s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root) {
    animation: none;
    mix-blend-mode: normal;
    z-index: 1;
}

::view-transition-new(root) {
    animation: urbanScopeThemeFadeIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
    mix-blend-mode: normal;
    z-index: 2;
}

html.theme-transitioning,
html.theme-transitioning *:not(.theme-icon),
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition-property: background-color, color, border-color, box-shadow, fill, stroke, filter !important;
    transition-duration: 0.48s !important;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
    transition-delay: 0s !important;
}

html.dark-mode {
    color-scheme: dark;
    --brand-primary-green: #3ea35d;
    --brand-dark-green: #86efac;
    --brand-light-green: rgba(62, 163, 93, 0.18);
    --text-primary: #e7f0e9;
    --text-secondary: #b4c8b9;
    --text-muted: #8ea594;
    --bg-white: #0e1611;
    --bg-input: #142018;
    --border-light: #283d2e;
}

html.dark-mode body,
html.dark-mode .form-panel {
    background-color: #0e1611 !important;
    color: #e7f0e9;
}

html.dark-mode .theme-toggle-btn {
    background: #17241c;
    border-color: #2b4031;
    color: #e7f0e9;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .theme-toggle-btn:hover {
        background: #203327;
        border-color: #4ade80;
    }
}

html.dark-mode .back-home-link,
html.dark-mode .form-brand-text .brand-title,
html.dark-mode .welcome-header h1 {
    color: #eef6f0;
}

html.dark-mode .forgot-link,
html.dark-mode .register-prompt a,
html.dark-mode .inline-link {
    color: #86efac;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .back-home-link:hover {
        color: #86efac;
    }
}

html.dark-mode .form-group label,
html.dark-mode .checkbox-label {
    color: #d0e0d4;
}

html.dark-mode .input-box input {
    background-color: #142018;
    border-color: #2b4031;
    color: #e7f0e9;
}

html.dark-mode .input-box input:focus {
    background-color: #18271d;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
}

html.dark-mode .input-box input::placeholder {
    color: #78907f;
}

html.dark-mode .divider::before {
    background-color: #243629;
}

html.dark-mode .divider span {
    background-color: #0e1611;
    color: #8ea594;
}

html.dark-mode .btn-google {
    background-color: #16231b;
    border-color: #2b4031;
    color: #e7f0e9;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .btn-google:hover {
        background-color: #1f3126;
        border-color: #4ade80;
    }
}

html.dark-mode .form-footer {
    border-top-color: #223327;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .terms-label:hover {
        background-color: #16231b;
    }
}

html.dark-mode .terms-label.is-accepted {
    background-color: rgba(62, 163, 93, 0.16);
    border-color: #2f573b;
    color: #86efac;
}

/* Auth Modals (Terms & OTP) in Dark Mode */
html.dark-mode .terms-modal-card,
html.dark-mode .otp-modal-card,
html.dark-mode .admin-security-card {
    background: #16231b;
    border-color: #293e2f;
    color: #e7f0e9;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

html.dark-mode .terms-modal-header {
    background: linear-gradient(180deg, #1b2c21 0%, #16231b 100%);
    border-bottom-color: #26392c;
}

html.dark-mode .terms-modal-badge-icon,
html.dark-mode .otp-modal-icon {
    background: #1f3326;
    border-color: #2f4e39;
    color: #86efac;
}

html.dark-mode .brand-logo-img,
html.dark-mode .form-brand-logo {
    filter: brightness(1.45) saturate(1.15) drop-shadow(0 0 6px rgba(134, 239, 172, 0.22));
}

html.dark-mode .toggle-pw {
    color: #a8c5b0 !important;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .toggle-pw:hover {
        color: #86efac !important;
        background-color: rgba(134, 239, 172, 0.12) !important;
    }
}

html.dark-mode .terms-modal-close,
html.dark-mode .otp-modal-close {
    background: #1c2d22;
    border-color: #2f4736;
    color: #d8ebe0;
}

html.dark-mode .terms-modal-heading h2,
html.dark-mode .otp-modal-card h2,
html.dark-mode .terms-doc-section h3 {
    color: #eef6f0;
}

html.dark-mode .terms-modal-close,
html.dark-mode .otp-modal-close {
    background: #1f3125;
    border-color: #2f4736;
    color: #c2d4c6;
}

html.dark-mode .terms-modal-body {
    background: #16231b;
    scrollbar-color: rgba(134, 239, 172, 0.35) #111b15;
}

html.dark-mode .terms-part-banner,
html.dark-mode .terms-part-banner.privacy-banner,
html.dark-mode .terms-end-callout {
    background: #1b2b21;
    border-color: #2d4534;
}

html.dark-mode .terms-end-callout p {
    color: #d6e6da;
}

html.dark-mode .terms-doc-section {
    border-bottom-color: #243629;
}

html.dark-mode .terms-doc-section p,
html.dark-mode .terms-doc-section li,
html.dark-mode .otp-modal-copy {
    color: #c2d4c6;
}

html.dark-mode .terms-doc-section strong,
html.dark-mode .otp-modal-copy strong,
html.dark-mode .otp-form label {
    color: #86efac;
}

html.dark-mode .terms-modal-footer {
    background: #131f17;
    border-top-color: #26392c;
}

html.dark-mode .btn-terms-decline {
    background: #1c2d22;
    border-color: #2f4736;
    color: #e7f0e9;
}

html.dark-mode .otp-form input {
    background: #111b15;
    border-color: #2b4031;
    color: #86efac;
}

html.dark-mode .showcase-panel img {
    filter: none;
}

html.dark-mode .google-auth-banner,
html.dark-mode .auth-notice {
    background-color: #16241b;
    border-color: #2b4232;
    color: #c9dbce;
}

html.dark-mode .google-auth-banner.is-setup,
html.dark-mode .terms-scroll-hint {
    background-color: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fde68a;
}

html.dark-mode .google-auth-banner.is-error,
html.dark-mode #resetStatus.is-error {
    background-color: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

html.dark-mode .terms-scroll-hint.is-ready {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(74, 222, 128, 0.35);
    color: #86efac;
}

html.dark-mode .terms-scroll-progress {
    background: #1c2e22;
}

html.dark-mode .terms-doc-section code {
    background: #111b15;
    color: #86efac;
}

html.dark-mode .strength-bars span {
    background-color: #24382b;
}

@media (hover: hover) and (pointer: fine) {
    html.dark-mode .btn-terms-decline:hover {
        background: #253b2c;
        border-color: #4ade80;
        color: #86efac;
    }
}

/* ============================================================
   20 UI/UX DESIGN SYSTEM POLISHES (RULES 3, 10, 14, 16, 18)
   ============================================================ */
.auth-title,
.slide-text h2,
.terms-modal-header h3 {
    text-wrap: balance;
}

.auth-subtitle,
.slide-text p,
.terms-modal-header p {
    text-wrap: pretty;
}

/* Unitalicize hints (Rule 3) */
.form-group-note,
.form-hint,
.disclaimer-text {
    font-style: normal !important;
}

/* Emphasize Primary Auth CTA (Rule 10) */
.btn-submit {
    background: linear-gradient(135deg, var(--green, #1f4928) 0%, var(--forest, #2e7d32) 100%) !important;
    box-shadow: 0 4px 14px rgba(31, 73, 40, 0.28);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .btn-submit:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(31, 73, 40, 0.38);
    }
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(31, 73, 40, 0.25);
}

/* Concentric Radius Math: Outer Card vs Inner Inputs (Rule 14) */
.auth-card {
    border-radius: 20px;
}
.input-with-icon input,
.auth-form input {
    border-radius: 10px;
}
.social-btn {
    border-radius: 10px;
}


