/* ============================================================
   ROOT VARIABLES
============================================================ */
:root {
    --green: #649208;
    --green-dark: #21330B;
    --green-light: #EDFFE8;
    --green-mid: #d6e7c4;
    --primary: #649208;
    --primary-dark: #21330B;
    --blue: #0d5fa8;
    --blue-dark: #082f57;
    --dark: #212529;
    --success: #28a745;
    --error: #dc3545;
    --border-radius: 8px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   BODY
============================================================ */
body {
    font-family: "M PLUS 1", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f2f2f2;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(6px, 2vw, 20px);
    box-sizing: border-box;
}

/* ============================================================
   CARD
============================================================ */
.card {
    width: 100%;
    max-width: 1150px;
    min-height: unset;
    max-height: calc(100vh - clamp(10px, 4vw, 40px));
    background: white;
    display: flex;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* ============================================================
   LEFT PANEL
============================================================ */
.left-panel {
    flex: 0 0 54%;
    background: #EDFFE8;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border: 3px solid yellowgreen;
    border-radius: 20px 0 0 20px;
    padding: 0 clamp(10px, 3vw, 30px) clamp(10px, 4vh, 40px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;        /* Firefox: hide scrollbar */
    -ms-overflow-style: none;     /* old Edge/IE: hide scrollbar */
}

.left-panel::-webkit-scrollbar {
    display: none;                /* Chrome/Safari: hide scrollbar */
}

.left-center {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* ============================================================
   RIGHT PANEL
============================================================ */
.right-panel {
    flex: 0 0 46%;
    background-color: #d6e7c4;
    background-image: url("./Rectangle3.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 33% center;
    border-radius: 0 18px 18px 0;
    border: 3px solid yellowgreen;
}

/* ============================================================
   LOGO
============================================================ */
.logo-block {
    margin: 0;
    padding-top: 0px;
}

.logo-block img {
    max-width: clamp(100px, 20vw, 20px);
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ============================================================
   AUTH MODAL
============================================================ */
.auth-modal {
    background: transparent;
    padding: clamp(8px, 2vh, 24px) 0 clamp(4px, 1vh, 10px);
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h2 {
    font-size: clamp(16px, 2.5vw, 24px);
    font-weight: 600;
    margin-bottom: clamp(12px, 2.5vh, 25px);
    color: var(--dark);
    text-align: center;
}

.formTitle {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 700;
    color: #2f3a2f;
    margin-bottom: clamp(4px, 1vw, 8px);
    text-align: left;
}

.subtitle {
    font-size: clamp(11px, 1.5vw, 14px);
    color: #5f6b5f;
    margin-bottom: clamp(8px, 2vw, 18px);
    text-align: left;
    font-weight: 400;
    line-height: 1.5;
}

/* ============================================================
   LABELS
============================================================ */
label {
    display: block;
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 500;
    color: #333;
    margin-bottom: clamp(4px, 1vh, 8px);
    text-align: left;
    padding-left: 2px;
}

/* ============================================================
   BASE INPUTS
============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"] {
    width: 100%;
    height: clamp(38px, 6vh, 48px);
    border-radius: 8px;
    border: 2px solid #1E1E1E;
    background: #FFFFFF;
    padding: clamp(8px, 1vw, 12px) 14px;
    box-sizing: border-box;
    box-shadow: 4px 4px 0px 0px #000000;
    font-size: clamp(12px, 1.5vw, 14px);
    font-family: inherit;
    outline: none;
    margin-bottom: clamp(8px, 1.5vh, 14px);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    text-overflow: ellipsis;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
    box-shadow: 2px 2px 0px 0px #000000;
    border-color: var(--green);
}

input:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
    caret-color: transparent;
    color: #999;
    box-shadow: none;
}

input::placeholder { color: #999; }

/* ============================================================
   CUSTOM REMEMBER ME CHECKBOX
============================================================ */
#rememberMe {
    margin-top: 2px;
}
.remember-box input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 13.33px;
    height: 13.33px;
    border: 1.5px solid #1E1E1E;
    border-radius: 3px;
    background: linear-gradient(180deg, #FEFEFE 0%, #EFF3EC 100%);
    position: relative;
    cursor: pointer;
    margin: 0;
}

.remember-box input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 3.3px;
    width: 4px;
    height: 7px;
    border: solid #1E1E1E;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

/* ============================================================
   INTL-TEL-INPUT OVERRIDES
============================================================ */
.phone-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.iti,
.iti--allow-dropdown,
.iti--separate-dial-code {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.iti input[type="tel"],
.iti input[type="text"],
.iti > input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    height: clamp(38px, 6vh, 48px) !important;
}

.iti__flag-container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 0;
}

.iti__selected-flag {
    height: 100%;
    padding: 0 10px 0 12px;
    background: transparent;
}

.iti__country-list {
  max-height: 200px;
  overflow-y: auto;
  z-index: 10000;
  width: 420px;
  max-width: 90vw;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.iti__country-list::-webkit-scrollbar {
  display: none;
}

#phone {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ============================================================
   OTP
============================================================ */
#otpButton {
    display: none;
    width: 100%;
    height: clamp(38px, 6vh, 48px);
    border-radius: 8px;
    padding: 0 16px;
    border: none;
    background: #649208;
    box-shadow: 4px 4px 0px 0px #21330B;
    color: #fff;
    font-weight: 600;
    font-size: clamp(12px, 1.5vw, 14px);
    font-family: inherit;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

#otpButton:hover { box-shadow: none; transform: translate(4px, 4px); }

#otpButton:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#otpTimer {
    display: block;
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: clamp(11px, 1.3vw, 13px);
    color: var(--error);
    text-align: center;
}

.otp-container {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 12px);
    margin-bottom: clamp(8px, 1.5vh, 16px);
}

.otp-container input {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
    height: clamp(38px, 6vh, 48px);
}

#verifyOtpButton {
    display: none;
    flex-shrink: 0;
    width: clamp(100px, 15vw, 150px);
    height: clamp(38px, 6vh, 48px);
    border-radius: 8px;
    padding: 0 10px;
    border: none;
    background: #649208;
    box-shadow: 4px 4px 0px 0px #21330B;
    color: #fff;
    font-weight: 600;
    font-size: clamp(10px, 1.2vw, 13px);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#verifyOtpButton:hover { box-shadow: none; transform: translate(4px, 4px); }

/* ============================================================
   PASSWORD WRAPPER + EYE TOGGLE
============================================================ */
.password-wrapper {
    position: relative;
    margin-bottom: clamp(8px, 1.5vh, 16px);
}

.password-left-icon {
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    width:18px;
    height:18px;
    pointer-events:none;
    z-index:2;
}

.password-wrapper input {
    margin-bottom: 0;
    padding-right: 46px;
    padding-left: 44px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    display: none;
    color: #555;
    line-height: 1;
}

#confirmPassword{
    padding-left:16px !important;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 40%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 2;
}

.input-with-icon input {
    padding-left: 44px;
}

.toggle-password i { font-size: 18px; color: #555; }
.toggle-password:hover i { color: var(--green); }
.login-toggle  { display: block; }
.confirm-toggle { display: block; }

/* ============================================================
   REMEMBER ME + FORGOT ROW
============================================================ */
.remember-forgot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -4px;
    margin-bottom: clamp(8px, 1.5vh, 16px);
    font-size: clamp(12px, 1.4vw, 14px);
    flex-wrap: wrap;
    gap: 6px;
}

.remember-box {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

.forgot-link { color: var(--blue); text-decoration: none; font-weight: 500; }
.forgot-link:hover { text-decoration: underline; }

/* ============================================================
   PRIMARY BUTTON
============================================================ */
.button-primary,
button[type="submit"] {
    width: 100%;
    height: clamp(40px, 7vh, 56px);
    border-radius: 40px;
    padding: 0 24px;
    border: none;
    background: #6c9a05;
    box-shadow: 4px 4px 0px 0px #21330B;
    color: #fff;
    font-weight: 700;
    font-size: clamp(13px, 1.8vw, 16px);
    letter-spacing: 0.5px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: clamp(6px, 1.2vh, 10px);
}

.button-primary:hover,
button[type="submit"]:hover { box-shadow: none; transform: translate(4px, 4px); }

/* ============================================================
   SECONDARY BUTTON (Guest)
============================================================ */
.button-secondary,
#guestLoginBtn {
    width: 100%;
    height: clamp(40px, 7vh, 56px);
    border-radius: 40px;
    padding: 0 24px;
    border: 2px solid #6c9a05;
    background: #EDFFE8;
    color: #2d3c1b;
    font-weight: 700;
    font-size: clamp(13px, 1.8vw, 16px);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: clamp(6px, 1.4vh, 12px);
    box-shadow: 0 4px 0 #C5D9B4;
}

.button-secondary:hover,
#guestLoginBtn:hover { transform: translate(4px, 4px); box-shadow: none; }

/* ============================================================
   DIVIDER & LINKS
============================================================ */
.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: clamp(8px, 1.8vh, 16px) 0 clamp(6px, 1.4vh, 12px);
    font-size: clamp(12px, 1.4vw, 14px);
    color: #1E1E1E;
    font-weight: bold;
}

.divider-text::before,
.divider-text::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #A7A7A7;
}

.divider-text span {
    padding: 0 12px;
}

.forgot-password-link { font-size: clamp(12px, 1.4vw, 14px); margin-top: 12px; text-align: center; }

.toggle-link a {
    display: block;
    width: 100%;
    background: var(--blue);
    color: #fff !important;
    text-align: center;
    padding: 16px 0;
    border-radius: 40px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    font-size: clamp(13px, 1.8vw, 16px);
    margin-top: 6px;
    box-shadow: 4px 4px 0 var(--blue-dark);
    transition: all 0.2s ease;
}

.toggle-link a:hover { transform: translate(4px, 4px); box-shadow: none; }

.create-btn {
    display: block;
    width: 100%;
    background: var(--blue);
    color: #fff !important;
    text-align: center;
    padding: 16px 0;
    border-radius: 40px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--blue-dark);
    transition: all 0.2s ease;
}

.create-btn:hover { transform: translate(4px, 4px); box-shadow: none; }

/* ============================================================
   ERROR BOX & HINTS
============================================================ */
#errorBox {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(90vw, 380px);
    background: #fff;
    color: var(--error);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 12px 18px;
    border-radius: 10px;
    border-left: 4px solid var(--error);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 1500;
    display: none;
}

.hint {
    display: block;
    font-size: 12px;
    margin-top: 8px;
    margin-bottom: 6px;
    text-align: center;
}

/* ============================================================
   VALIDATION RULES POPUP
============================================================ */
.fullname-rules,
.password-rules {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 15px;
    width: min(290px, 90vw);
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: #333;
    display: none;
}

.fullname-rules ul, .password-rules ul { list-style: none; padding-left: 0; margin: 0; }
.fullname-rules li, .password-rules li { padding: 4px 0; font-size: 13px; }
.fullname-rules li::before, .password-rules li::before { content: "✘ "; color: var(--error); }
.fullname-rules li.valid, .password-rules li.valid { color: var(--primary); }
.fullname-rules li.valid::before, .password-rules li.valid::before { content: "✔ "; color: var(--primary); }

/* ============================================================
   BACK BUTTON
============================================================ */
.Goback {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 100px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #1E1E1E;
    background: white;
    box-shadow: 4px 4px 0px 0px #000000;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.Goback:hover { box-shadow: none; transform: translate(4px, 4px); }

/* ============================================================
   OTP STATUS
============================================================ */
.otp-status-container { position: fixed; top: 20px; right: 20px; z-index: 2000; }

.otp-spinner-wrapper {
    display: none;
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.otp-spinner {
    border: 4px solid rgba(0,0,0,0.1);
    border-top: 4px solid #649208;
    border-radius: 50%;
    width: 24px; height: 24px;
    animation: otpSpin 1s linear infinite;
    margin: 0 auto;
}

@keyframes otpSpin { 0%{ transform:rotate(0deg); } 100%{ transform:rotate(360deg); } }

.otp-message {
    text-align: center;
    margin: 10px 0;
    font-weight: 500;
    display: none;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ============================================================
   OVERLAY & SUCCESS POPUPS
============================================================ */
.overlay {
    display: none;
    position: fixed; inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(5px);
}

.success-popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background-color: #dff0d8;
    color: #3c763d;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
    max-width: min(400px, 90vw);
    width: 90%;
    animation: fadeIn 0.5s ease-out;
    border-left: 5px solid #28a745;
}

.success-popup::before {
    content: "✓";
    display: inline-block;
    margin-right: 10px;
    font-size: 32px;
    vertical-align: middle;
    color: #28a745;
}

.success-popup-content { display: inline-block; vertical-align: middle; }
.success-popup-content h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.success-popup-content p  { margin: 0; font-size: 16px; }

/* ============================================================
   ACCOUNT CREATED CARD
============================================================ */
.account-success-card {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(700px, 92vw);
    max-height: 90vh;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
    padding: 28px 24px;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1002;
    overflow: auto;
}

.account-success-card .success-icon {
    font-size: 60px;
    background: #52c41a;
    color: white;
    width: 100px; height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-success-card .success-content h3 { margin: 0 0 8px; font-size: clamp(20px,3vw,34px); font-weight: 600; }
.account-success-card .success-content p  { margin: 0; font-size: clamp(14px,2vw,22px); color: #595959; }
.account-success-card .success-content h6 { margin: 14px 0 4px; font-size: clamp(13px,1.5vw,16px); color: #595959; font-weight: 500; }

.account-success-card .success-content button {
    margin-top: 10px;
    width: 100%; max-width: 360px;
    padding: 12px;
    background-color: #389e0d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeIn {
    from { opacity:0; transform:translate(-50%,-60%); }
    to   { opacity:1; transform:translate(-50%,-50%); }
}

/* ============================================================
   LEGACY
============================================================ */
.loginSuccessPopup, .registerSuccessPopup { display: none; }

.hide-flag .iti__flag-container,
.hide-flag .iti__selected-flag,
.hide-flag .iti__arrow { display: none !important; }

/* ============================================================
   ████████  RESPONSIVE BREAKPOINTS  ████████
   (kept as safety net; clamp() above already handles most scaling
   between these thresholds, so overrides here are lighter now)
============================================================ */

/* ── ≤ 1100px: stack panels & fully remove right-panel image ── */
@media (max-width: 1100px) {
    .card {
        flex-direction: column;
        max-width: 580px;
        min-height: unset;
        margin: 0 auto;
    }

    .left-panel {
        flex: none;
        width: 100%;
        border-radius: 18px;
    }

    .right-panel {
        display: none;
    }

    .left-center { width: 100%; max-width: 480px; }

    .iti, .iti--allow-dropdown { width: 100% !important; }
    .iti input[type="tel"] { width: 100% !important; }

    .card.mode-login,
    .card.mode-register {
        height: auto;
        min-height: unset;
        max-height: calc(100vh - clamp(10px, 4vw, 40px));
    }
}

/* ── ≤ 768px: tablet ── */
@media (max-width: 768px) {
    body { padding: 12px; align-items: flex-start; }

    .card { max-width: 100%; border-radius: 14px; }
    .left-panel { border-radius: 14px; }

    .Goback { width: 88px; height: 36px; font-size: 14px; }
}

/* ── ≤ 480px: phone ── */
@media (max-width: 480px) {
    body { padding: 8px; }

    .card { border-radius: 12px; }
    .left-panel { border-radius: 12px; }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        box-shadow: 3px 3px 0 #000;
    }

    .iti input[type="tel"] {
        padding-left: 86px !important;
    }

    .password-wrapper input { padding-right: 40px; }

    #otpButton       { box-shadow: 3px 3px 0 #21330B; }
    #verifyOtpButton { box-shadow: 3px 3px 0 #21330B; }

    .Goback { width: 80px; height: 34px; font-size: 13px; bottom: 10px; left: 10px; }
    .account-success-card .success-icon { width: 72px; height: 72px; font-size: 40px; }
}

/* ── ≤ 400px: small phone ── */
@media (max-width: 400px) {
    body { padding: 6px; }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        box-shadow: 2px 2px 0 #000;
    }

    .iti input[type="tel"] {
        padding-left: 78px !important;
    }

    .iti__selected-flag { padding: 0 6px 0 8px; }

    .button-secondary, #guestLoginBtn { box-shadow: 0 2px 0 #C5D9B4; }

    .toggle-link a { box-shadow: 2px 2px 0 var(--blue-dark); }

    .Goback { width: 74px; height: 32px; font-size: 12px; }
    .account-success-card .success-icon { width: 60px; height: 60px; font-size: 32px; }
}

.iti__arrow {
    margin-left: 3px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent !important;
    border-right:6px solid transparent !important;
    border-top: 6px solid black !important;
}

/* ============================================================
   Button loading-spinner styles
============================================================ */

.button-primary,
.button-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: btn-spin 0.6s linear infinite;
}

#googleLoginBtn .btn-spinner,
#guestLoginBtn .btn-spinner {
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: #6a9a1f;
}

#googleLoginBtn .btn-spinner {
    border-top-color: #4285F4;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

button[data-loading="true"] {
    cursor: not-allowed;
    opacity: 0.85;
    pointer-events: none;
}

/* ============================================================
   AUTH BOTTOM ROW (Google + Create Account / Login here)
============================================================ */
.auth-bottom-row {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
    align-items: stretch;
    margin-top: 0;
}

.google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

.auth-bottom-row #googleLoginBtn {
    flex: 1 1 0%;
    min-width: 0;
    box-sizing: border-box;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    height: clamp(40px, 7vh, 56px);
    font-size: clamp(13px, 1.6vw, 15px);
    padding: 0 16px;
    margin-top: 0 !important;
    box-shadow: 0 4px 0 #C5D9B4 !important;
    transition: all 0.15s ease;
}

.auth-bottom-row #googleLoginBtn:hover {
    transform: translate(0, 4px);
    box-shadow: none !important;
}

.toggle-link {
    display: block;
    text-align: center;
    font-size: clamp(12px, 1.4vw, 14px);
    margin: 0;
}

.toggle-link a,
.toggle-link a:visited,
.toggle-link a:active,
.toggle-link a:focus {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-bottom-row .toggle-link.with-text a:hover {
    text-decoration: underline;
}

.auth-bottom-row .toggle-link.link-only a,
.auth-bottom-row .toggle-link.link-only a:visited,
.auth-bottom-row .toggle-link.link-only a:hover,
.auth-bottom-row .toggle-link.link-only a:active,
.auth-bottom-row .toggle-link.link-only a:focus {
    text-decoration: none !important;
    color: #fff !important;
}

.auth-bottom-row .toggle-link.link-only {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    align-self: stretch;
    flex: 1 1 0%;
    min-width: 0;
    box-sizing: border-box;
}

.auth-bottom-row .toggle-link.link-only a {
    flex: 1 1 0%;
    min-width: 0;
    box-sizing: border-box;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(40px, 7vh, 56px);
    margin: 0;
    gap: 8px;
    font-size: clamp(11px, 1.4vw, 13px);
    letter-spacing: 0.2px;
    padding: 16px 24px;
    color: #fff;
    background: var(--blue);
    border-radius: 40px;
    box-shadow: 4px 4px 0px 0px var(--primary-dark);
    transition: all 0.2s ease;
}

.auth-bottom-row .toggle-link.link-only a:hover {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.auth-bottom-row .toggle-link.with-text {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(11px, 1.4vw, 13px);
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    color: #333;
}

.auth-bottom-row .toggle-link.with-text a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.auth-bottom-row .toggle-link.with-text a:hover {
    text-decoration: underline;
}

/* Card mode heights: fluid, capped to viewport */
.card.mode-login    { height: auto; max-height: calc(100vh - clamp(10px, 4vw, 40px)); }
.card.mode-register { height: auto; max-height: calc(100vh - clamp(10px, 4vw, 40px)); }