/* ============================================================
   LOGIN PAGE - MODERN PREMIUM REDESIGN
   Reuses input field design tokens from quarryregister-modern.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables (Blue & Gold Palette) ── */
:root {
    --lm-primary: #37597D;
    /* Blue */
    --lm-primary-dark: #1A365D;
    /* Dark Blue */
    --lm-primary-light: #e8f3ff;
    /* Light Blue Tint */
    --lm-accent: #E5A93B;
    /* Gold Accent */
    --lm-blue: #3b82f6;
    --lm-red: #ef4444;
    --lm-border: #e2e8f0;
    --lm-border-bottom: #cbd5e1;
    --lm-border-focus: var(--lm-primary);
    --lm-text: #1e293b;
    --lm-text-secondary: #64748b;
    --lm-text-muted: #94a3b8;
    --lm-label: #475569;
    --lm-radius: 4px;
    --lm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --lm-shadow-card: 0 25px 70px rgba(0, 0, 0, 0.07);
    --lm-mesh-gradient: radial-gradient(at 0% 0%, rgba(55, 89, 125, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(26, 54, 93, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(229, 169, 59, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(55, 89, 125, 0.08) 0px, transparent 50%);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.lm-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    background: #f0f4ff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Page Wrapper ── */
.lm-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ══════════════════════════════════════════
   LEFT HERO SECTION (50%)
══════════════════════════════════════════ */
.lm-hero {
    flex: 0 0 55%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 28px;
    overflow: hidden;
    background-color: #0b132b;
    background-image:
        radial-gradient(at 0% 0%, hsla(215, 60%, 15%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(220, 80%, 25%, 1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(215, 60%, 10%, 1) 0, transparent 50%),
        radial-gradient(at 0% 100%, hsla(35, 75%, 50%, 0.15) 0, transparent 50%);
}

/* Decorative blobs */
.lm-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    top: -120px;
    right: -140px;
    pointer-events: none;
}

.lm-hero::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -80px;
    left: -60px;
    pointer-events: none;
}

/* Subtle grid overlay */
.lm-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Hero top branding */
.lm-hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.lm-hero-brand-text h1 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.lm-hero-brand-text p {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    letter-spacing: 0.2px;
}

/* Hero main content */
.lm-hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0 10px;
}

.lm-hero-content img {
    height: 40px;
    width: 200px;
    margin-bottom: 25px;
}

.lm-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 16px;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lm-hero-eyebrow i {
    font-size: 9px;
}

.lm-hero-heading {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.lm-hero-heading span {
    background: linear-gradient(90deg, var(--lm-accent), #fef08a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lm-hero-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    max-width: 400px;
    margin: 0 0 16px;
}

/* Hero illustration area - Animated SVG Tech Illustration */
.lm-hero-illustration-svg {
    position: absolute;
    right: -20px;
    bottom: 60px;
    width: 360px;
    height: 360px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.35));
}

@keyframes rotate-clockwise {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-counter {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes pulse-radar {
    0% {
        r: 50px;
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        r: 180px;
        opacity: 0;
    }
}

@keyframes pulse-radar-slow {
    0% {
        r: 80px;
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        r: 220px;
        opacity: 0;
    }
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes float-gentle-reverse {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

@keyframes float-side {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

@keyframes dash-move {
    to {
        stroke-dashoffset: 0;
    }
}

.lm-hero-illustration-svg .tech-ring-dash {
    transform-origin: 250px 250px;
    animation: rotate-clockwise 25s linear infinite;
}

.lm-hero-illustration-svg .tech-ring-dash-rev {
    transform-origin: 250px 250px;
    animation: rotate-counter 18s linear infinite;
}

.lm-hero-illustration-svg .radar-pulse-1 {
    animation: pulse-radar 6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    transform-origin: 250px 250px;
}

.lm-hero-illustration-svg .radar-pulse-2 {
    animation: pulse-radar-slow 9s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    transform-origin: 250px 250px;
}

.lm-hero-illustration-svg .float-node-left {
    animation: float-gentle 5s ease-in-out infinite;
    transform-origin: 120px 250px;
}

.lm-hero-illustration-svg .float-node-right {
    animation: float-gentle-reverse 6s ease-in-out infinite;
    transform-origin: 380px 250px;
}

.lm-hero-illustration-svg .float-node-top {
    animation: float-side 5.5s ease-in-out infinite;
    transform-origin: 250px 110px;
}

.lm-hero-illustration-svg .float-node-bottom {
    animation: float-side 4.5s ease-in-out infinite;
    transform-origin: 250px 390px;
}

.lm-hero-illustration-svg .float-node-center {
    animation: float-gentle 4s ease-in-out infinite;
    transform-origin: 250px 250px;
}

.lm-hero-illustration-svg .data-path-1,
.lm-hero-illustration-svg .data-path-2 {
    stroke-dashoffset: 100;
    animation: dash-move 8s linear infinite;
}

/* Feature pills */
.lm-feature-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 10px;
}

.lm-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px 10px;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    backdrop-filter: blur(12px);
    transition: var(--lm-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.lm-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.lm-pill-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--lm-primary), var(--lm-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}



/* Hero footer */
.lm-hero-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lm-hero-footer img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.6;
}

.lm-hero-footer span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
}

/* ── RIGHT LOGIN SECTION (50%) ── */
.lm-right {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
    padding: 15px 24px;
    overflow-y: hidden;
}

.lm-card {
    width: 100%;
    max-width: 380px;
    padding-top: 20px;
}

/* Card header */
.lm-card-header {
    text-align: center;
    margin-bottom: 8px;
}

.lm-card-logo {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
    transition: var(--lm-transition);
}

.lm-card-logo:hover {
    transform: scale(1.05);
}

.lm-card-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--lm-primary) 0%, var(--lm-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.lm-card-subtitle {
    font-size: 12px;
    color: var(--lm-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ── TABS (Login / Sign Up) ── */
.lm-tabs {
    display: flex;
    background: #e8f3ff;
    border-radius: 4px;
    padding: 6px;
    gap: 2px;
    margin-bottom: 12px;
}

.lm-tabs .nav-item {
    flex: 1;
}

.lm-tabs .nav-link {
    display: block;
    text-align: center;
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 800;
    color: var(--lm-text-secondary);
    border-radius: 3px;
    border: none !important;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--lm-transition);
    cursor: pointer;
    opacity: 1 !important;
    text-decoration: none;
}

.lm-tabs .nav-link.active {
    background: #ffffff !important;
    color: var(--lm-primary) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border-bottom: none !important;
}

.lm-tabs .nav-link:not(.active):hover {
    color: var(--lm-text);
    background: rgba(255, 255, 255, 0.5);
}

/* ── FORM FIELDS — Same design as quarryregister ── */
.lm-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.lm-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lm-label);
    letter-spacing: 0.3px;
    text-transform: capitalize;
    margin-bottom: 0;
}

.lm-label .req {
    font-size: 7px;
    color: var(--lm-red);
    position: relative;
    top: -3px;
    margin-left: 2px;
}

/* Input controls — exact quarryregister tokens */
.lm-card .form-group {
    margin-bottom: 8px !important;
}

.lm-card .form-control,
.lm-card input.form-control,
.lm-card select.form-control {
    height: 32px !important;
    padding: 3px 10px !important;
    font-size: 12px !important;
    font-weight: 400;
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    color: var(--lm-text) !important;
    background: #ffffff !important;
    border: 1px solid var(--lm-border) !important;
    border-radius: var(--lm-radius) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: var(--lm-transition);
    width: 100%;
    line-height: 1.5;
    outline: none;
}

.lm-card .form-control:focus,
.lm-card input.form-control:focus,
.lm-card select.form-control:focus {
    border-color: var(--lm-border-focus) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(55, 89, 125, 0.08) !important;
    outline: none !important;
}

.lm-card .form-control::placeholder {
    color: #94a3b8 !important;
    font-weight: 400;
}

/* Password toggle wrapper */
.lm-pwd-wrap {
    position: relative;
}

.lm-pwd-wrap .form-control {
    padding-right: 42px !important;
}

.lm-pwd-wrap .toggle-password {
    position: absolute !important;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    color: var(--lm-text-muted);
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s;
}

.lm-pwd-wrap .toggle-password:hover {
    color: var(--lm-primary);
}

/* OTP/use-password toggle buttons */
.lm-otp-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: 4px;
}

.lm-otp-toggle .btn {
    font-size: 9.5px !important;
    padding: 1px 6px !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
    transition: var(--lm-transition);
}

/* Generate Password / Resend OTP row */
.lm-pwd-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    position: relative;
}

.lm-pwd-actions .btn-link {
    font-size: 11px;
    color: var(--lm-blue);
    padding: 0;
    text-decoration: underline;
    font-weight: 500;
}

/* Captcha row */
.lm-captcha-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.lm-captcha-row .captcha-image {
    height: 32px;
    border-radius: var(--lm-radius);
    border: 1px solid var(--lm-border);
}

.lm-captcha-row .refresh-captcha {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--lm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--lm-transition);
    flex-shrink: 0;
    padding: 0;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lm-captcha-row .refresh-captcha:hover {
    background: #f1f5f9;
    color: var(--lm-primary);
    border-color: #cbd5e1;
    transform: rotate(30deg);
}

.lm-captcha-row .form-control {
    flex: 1;
}

/* Remember me + Forgot row */
.lm-row-util {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.lm-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: var(--lm-text-secondary);
    cursor: pointer;
}

.lm-remember input[type="checkbox"] {
    width: 13px;
    height: 13px;
    accent-color: var(--lm-primary);
    cursor: pointer;
}

.lm-forgot {
    font-size: 11px;
    color: var(--lm-blue);
    text-decoration: underline;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}

.lm-forgot:hover {
    color: var(--lm-primary);
}

.lm-forgot:focus,
.lm-forgot:focus-visible,
.lm-card .btn-link:focus,
.lm-card .btn-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    color: var(--lm-primary) !important;
}

/* Sign In button */
.lm-btn-signin {
    width: 100%;
    height: 34px;
    background: linear-gradient(135deg, var(--lm-primary) 0%, var(--lm-primary-dark) 100%);
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: var(--lm-radius) !important;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--lm-transition);
    box-shadow: 0 8px 20px rgba(55, 89, 125, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    margin-top: 20px;
}

.lm-btn-signin:hover {
    background: linear-gradient(135deg, var(--lm-primary-dark) 0%, var(--lm-accent) 100%);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.35);
    transform: translateY(-1px);
}

.lm-btn-signin:active {
    transform: translateY(0);
}

/* Submit (signup) button */
.lm-btn-submit {
    width: 100%;
    height: 32px;
    background: linear-gradient(135deg, var(--lm-primary) 0%, var(--lm-primary-dark) 100%);
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: var(--lm-radius) !important;
    cursor: pointer;
    transition: var(--lm-transition);
    box-shadow: 0 4px 14px rgba(55, 89, 125, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.lm-btn-submit:hover {
    background: linear-gradient(135deg, var(--lm-primary-dark) 0%, var(--lm-accent) 100%);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
    transform: translateY(-1px);
}

/* Switch link row */
.lm-switch-row {
    text-align: center;
    font-size: 11.5px;
    color: var(--lm-text-secondary);
    margin-bottom: 2px;
}

.lm-switch-row .btn-link {
    font-size: 11.5px;
    color: var(--lm-primary);
    font-weight: 600;
    padding: 0 4px;
    text-decoration: none;
}

.lm-switch-row .btn-link:hover {
    text-decoration: underline;
}

/* OTP boxes */
.lm-otp-boxes {
    display: flex;
    gap: 8px;
}

.lm-otp-boxes .form-control {
    text-align: center !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* Divider */
.lm-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    color: var(--lm-text-muted);
    font-size: 10px;
}

.lm-divider::before,
.lm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lm-border);
}

/* Back to Home link */
.lm-back-home {
    text-align: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--lm-border);
}

.lm-back-home a {
    font-size: 12px;
    font-weight: 600;
    color: var(--lm-text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--lm-transition);
}

.lm-back-home a:hover {
    color: var(--lm-primary);
    transform: translateX(-4px);
}

.lm-back-home a i {
    font-size: 10px;
}

/* OTP Expire / timer messages */
.lm-card .otpExpireTime {
    margin-bottom: 8px;
}

.lm-card .otpExpireTime .otpMessage {
    font-size: 11px;
    color: var(--lm-text-secondary);
}

/* Modal overrides stay intact — only positioning */
div#sendSMS,
div#loginotp {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

/* Loader (preserve existing) */
.loader_new {
    width: 100vw;
    height: 100vh;
    display: flex;
    position: fixed;
    background: #000000c4;
    z-index: 99999;
    left: 0;
    top: 0;
    justify-content: center;
    align-items: center;
}

.custom-loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(#0000 10%, #559be5);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 0);
    animation: s3 1s infinite linear;
}

@keyframes s3 {
    to {
        transform: rotate(1turn);
    }
}

/* Hide utilities */
.lm-card .hide,
.lm-card .hideOtpContainer,
.login-close {
    display: none !important;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 992px) {
    .lm-hero {
        flex: 0 0 55%;
        padding: 20px 24px 24px 24px;
    }

    .lm-right {
        flex: 0 0 45%;
    }

    .lm-hero-heading {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .lm-page {
        flex-direction: column;
    }

    .lm-hero {
        flex: none;
        padding: 28px 24px;
        min-height: auto;
    }

    .lm-hero-content {
        padding: 20px 0 0;
    }

    .lm-hero-heading {
        font-size: 26px;
    }

    .lm-hero-subtitle {
        display: none;
    }


    .lm-right {
        flex: none;
        padding: 32px 20px;
    }

    .lm-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .lm-hero {
        display: none;
    }

    .lm-right {
        padding: 24px 16px;
        min-height: 100vh;
    }

    .lm-right::before {
        display: none;
    }
}

/* ── Enhanced Modal & Popup Custom Styles (Refactored from login.aspx) ── */
body {
    background: none !important;
}

div#sendSMS,
div#loginotp {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
}

div#sendSMS .modal-dialog .modal-content,
div#loginotp .modal-dialog .modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: var(--lm-shadow-card);
    border: 1px solid rgba(55, 89, 125, 0.18);
    border-radius: var(--lm-radius);
    overflow: hidden;
    z-index: 1002;
}

div#sendSMS .modal-dialog .modal-header,
div#loginotp .modal-dialog .modal-header {
    border-bottom: none;
    padding: 12px 16px 6px;
    position: relative;
}

div#sendSMS .modal-dialog .modal-title,
div#loginotp .modal-dialog .modal-title {
    font-size: 13px;
    color: var(--lm-text);
    font-weight: 700;
    margin-bottom: 0;
}

button#sendSMS_cbtn,
button#otp_cbtn {
    border: none;
    background: transparent;
    font-size: 20px;
    color: var(--lm-text-secondary);
    transition: var(--lm-transition);
    padding: 2px 8px;
    cursor: pointer;
    line-height: 1;
}

button#sendSMS_cbtn:hover,
button#otp_cbtn:hover {
    color: var(--lm-red);
    transform: scale(1.1);
}

.sendsms_input input {
    height: 32px !important;
    padding: 3px 10px !important;
    font-size: 12px !important;
    color: var(--lm-text) !important;
    border: 1px solid var(--lm-border) !important;
    border-radius: var(--lm-radius) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: var(--lm-transition);
    margin-bottom: 12px;
}

.sendsms_input input:focus {
    border-color: var(--lm-border-focus) !important;
    box-shadow: 0 0 0 4px rgba(55, 89, 125, 0.08) !important;
}

.loginForm input {
    font-size: 14px;
    color: var(--lm-text);
    background: none;
    border: none;
    border-radius: 0;
    padding: 6px 0;
    transition: var(--lm-transition);
}

.loginForm input:focus {
    border-bottom-color: var(--lm-border-focus);
    outline: none;
}

.genpwd_footer button {
    background: linear-gradient(135deg, var(--lm-primary) 0%, var(--lm-primary-dark) 100%);
    border: none !important;
    border-radius: var(--lm-radius);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    transition: var(--lm-transition);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(55, 89, 125, 0.25);
}

.genpwd_footer button:hover {
    background: linear-gradient(135deg, var(--lm-primary-dark) 0%, var(--lm-accent) 100%);
    box-shadow: 0 6px 14px rgba(26, 54, 93, 0.35);
    transform: translateY(-1px);
}

.genpwd_footer span {
    font-size: 11px;
    margin: 0 12px;
    color: var(--lm-text-secondary);
}

button#otp_back {
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--lm-primary);
    position: absolute;
    right: 32px;
    top: 12px;
    cursor: pointer;
    transition: var(--lm-transition);
}

button#otp_back:hover {
    color: var(--lm-primary-dark);
    text-decoration: underline;
}

.disabled {
    pointer-events: none !important;
    cursor: no-drop !important;
}

.disabledUpdate {
    pointer-events: none !important;
    filter: opacity(0.5);
}

.hideOtpContainer {
    display: none !important;
}

.timeOutLabel {
    font-size: 12px;
    color: var(--lm-primary-dark);
    font-weight: 600;
}

.otpExpireTime .btn-link {
    display: block;
    font-size: 11px;
    color: var(--lm-primary);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--lm-transition);
    padding: 0;
}

.otpExpireTime .btn-link:hover {
    color: var(--lm-primary-dark);
}

/* ── Redesigned Alerts & Notice Modals ── */
.errorModal .modal-content {
    border-radius: var(--lm-radius);
    border: 1px solid var(--lm-border);
    box-shadow: var(--lm-shadow-card);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    overflow: hidden;
    padding: 12px;
}

.errorModal .modal-body {
    border: 2px solid rgba(55, 89, 125, 0.08);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    text-align: center;
}

.errorModal .top-close {
    position: absolute;
    right: 12px;
    top: 10px;
}

.errorModal .top-close button {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--lm-text-secondary);
    cursor: pointer;
    transition: var(--lm-transition);
    line-height: 1;
}

.errorModal .top-close button:hover {
    color: var(--lm-red);
}

.errorModal .model-check {
    text-align: center;
    background: #fee2e2;
    /* light red background for error */
    border-radius: 50%;
    padding: 4px;
    display: inline-block;
    margin: 0 auto 10px !important;
    position: relative;
    overflow: hidden;
}

.errorModal .model-check i.fas {
    width: 36px;
    height: 36px;
    background: var(--lm-red);
    border-radius: 50%;
    font-size: 16px;
    line-height: 36px;
    color: #fff;
    display: block;
}

.errorModal .model-check::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(to right, #00000000 0%, #00000000 50%, #00000010 50%, #00000010 100%);
}

#noticeModal .model-check {
    background: #e8f3ff;
    /* light blue for warning */
}

#noticeModal .model-check i.fas {
    background: var(--lm-primary);
}

.errorModal h4 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.errorModal span.font-weight-medium {
    display: block;
    font-size: 12px;
    color: var(--lm-text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    text-align: justify;
}

/* ── Text Buttons Redesign (OTP / Forgot Password / Resend) ── */
.lm-otp-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 8px;
}

.lm-otp-toggle button.btn-theme-light,
.generate_pwd button.btn-link,
.form-group button.btn-link,
button.lm-forgot {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--lm-primary) !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    box-shadow: none !important;
    height: auto !important;
}

.lm-otp-toggle button.btn-theme-light:hover,
.lm-otp-toggle button.btn-theme-light:focus,
.generate_pwd button.btn-link:hover,
.generate_pwd button.btn-link:focus,
.form-group button.btn-link:hover,
.form-group button.btn-link:focus,
button.lm-forgot:hover,
button.lm-forgot:focus {
    color: var(--lm-accent) !important;
    outline: none !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.generate_pwd .text-right button.btn-link.disabledUpdate,
.generate_pwd button.btn-link[disabled] {
    color: var(--lm-text-secondary) !important;
    opacity: 0.6;
    cursor: not-allowed;
    text-decoration: none !important;
}

/* ── Primary Button Focus Override ── */
.btn-primary.focus,
.btn-primary:focus {
    box-shadow: 0 0 0 .2rem rgba(249, 115, 22, 0.5) !important;
}