/*
 * Embossed 3D Neumorphic Login Page with Animated Gradient Border
 * Web Solutions ERP
 */

:root {
    --neu-bg: #e9edf4;
    --neu-shadow-dark: #c5c9d4;
    --neu-shadow-light: #ffffff;
    --neu-text-dark: #1e2532;
    --neu-text-muted: #7e8799;
    --neu-accent-yellow: #fbbf24;
    --neu-accent-orange: #ea580c;
    --neu-accent-amber: #f59e0b;
}

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

/* Hide scrollbars and lock top-bottom scrolling */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.switch-viewport::-webkit-scrollbar,
.light-stage::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, WebKit */
    width: 0 !important;
    height: 0 !important;
}

body.embossed-auth-body {
    height: 100vh;
    height: 100dvh;
    font-family: 'Plus Jakarta Sans', 'Figtree', system-ui, -apple-system, sans-serif;
    overflow: hidden !important;
    position: relative;
    background-color: #0b0e14;
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.embossed-auth-body.light-on {
    background-color: var(--neu-bg);
}

/* ============================================================
   1. SWITCH SCREEN (LIGHT OFF / AMBIENT NIGHT MOOD)
   ============================================================ */
.switch-viewport {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 24px;
    background: radial-gradient(circle at 50% 48%, #1c2332 0%, #0d1118 65%, #07090d 100%);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
}

.switch-viewport.hidden {
    opacity: 0;
    transform: scale(0.88);
    visibility: hidden;
    pointer-events: none;
}

.switch-brand-top {
    text-align: center;
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease-out;
}

.switch-brand-logo {
    height: 74px;
    max-width: 170px;
    width: auto;
    object-fit: contain;
    margin-bottom: 14px;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7));
}

.switch-brand-title {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.switch-brand-subtitle {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

/* The 3D Push Button */
.switch-button-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 32px;
}

.switch-button-halo {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0.08) 55%, transparent 75%);
    animation: switchPulseHalo 3s ease-in-out infinite alternate;
    pointer-events: none;
}

.switch-button-trigger {
    position: relative;
    width: 210px;
    height: 210px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 30px rgba(245, 158, 11, 0.3));
    animation: switchFloat 3.5s ease-in-out infinite alternate;
}

.switch-button-trigger:hover {
    transform: scale(1.06) translateY(-4px);
    filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 45px rgba(245, 158, 11, 0.55));
}

.switch-button-trigger:active,
.switch-button-trigger.is-pressed {
    transform: scale(0.92) translateY(6px);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.25));
}

.switch-button-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Prompt Pill Under Switch */
.switch-prompt-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 9999px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fadeInUp 0.8s ease-out;
}

.switch-prompt-pill:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.25);
}

.switch-prompt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
    animation: pulseDot 1.5s infinite;
}

.switch-install-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    margin-top: 24px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.switch-install-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.5);
    filter: brightness(1.05);
}

/* Flash Flare Effect */
.light-flash-burst {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #fff6cc 35%, rgba(254, 240, 138, 0.9) 60%, rgba(245, 158, 11, 0.4) 85%, transparent 100%);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}

.light-flash-burst.flash-active {
    opacity: 1;
    animation: lightFlashAnimation 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes lightFlashAnimation {
    0% { opacity: 0; transform: scale(0.6); }
    30% { opacity: 1; transform: scale(1.4); }
    100% { opacity: 0; transform: scale(2.2); }
}

/* ============================================================
   2. EMBOSSED 3D LIGHT ROOM (LOGIN FORM)
   ============================================================ */
.light-stage {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 15px;
    background-color: var(--neu-bg);
    overflow: hidden !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    visibility: hidden;
}

.light-stage.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

/* ============================================================
   3. ANIMATED GRADIENT BORDER CARD (Image 2 style)
   ============================================================ */
.neu-card-outer {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: 36px;
    padding: 2px; /* 2px border height/thickness */
    overflow: hidden;
    box-shadow: 18px 18px 45px var(--neu-shadow-dark), -18px -18px 45px var(--neu-shadow-light), 0 10px 40px rgba(245, 158, 11, 0.18);
    transition: box-shadow 0.3s ease;
}

/* The Animated Rotating Yellow-Orange Gradient Border (Reduced length beam) */
.neu-card-outer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 190deg,
        rgba(251, 191, 36, 0) 220deg,
        #fbbf24 250deg,
        #f59e0b 280deg,
        #ea580c 310deg,
        rgba(234, 88, 12, 0) 335deg,
        transparent 360deg
    );
    animation: rotateCardBorder 5.5s linear infinite;
    z-index: 0;
}

@keyframes rotateCardBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* The Inner Embossed 3D Card (Pure solid background without gradient) */
.neu-card {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 34px;
    background: var(--neu-bg);
    padding: 34px 28px 26px;
}

/* Card Header - Centered Logo & Title */
.neu-card-header {
    text-align: center;
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.neu-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.neu-card-logo {
    max-height: 68px; /* +30% larger */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    display: block;
}

.neu-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--neu-text-dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-align: center;
}

/* Form Groups & Debossed Inset Fields (with 15px left-right spacing) */
.neu-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 15px;
}

.neu-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Embossed Field Height Reduced to 54px with Full Clickable Input Height */
.neu-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 54px;
    border-radius: 9999px;
    background: var(--neu-bg);
    box-shadow: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0 16px 0 20px;
    transition: all 0.25s ease;
    cursor: text;
}

.neu-input-wrapper:focus-within {
    box-shadow: inset 5px 5px 10px #bcc1ce, inset -5px -5px 10px #ffffff, 0 0 0 2px rgba(245, 158, 11, 0.35);
}

.neu-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neu-text-muted);
    margin-right: 12px;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.neu-input-icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 2.2;
}

/* Full height input field so clicking anywhere in the container activates it */
.neu-input {
    flex: 1;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--neu-text-dark);
    font-family: inherit;
    padding: 0;
    line-height: 54px;
    cursor: text;
}

.neu-input::placeholder {
    color: #98a2b3;
    font-weight: 400;
}

/* Make browser autofill background 100% transparent */
.neu-input:-webkit-autofill,
.neu-input:-webkit-autofill:hover,
.neu-input:-webkit-autofill:focus,
.neu-input:-webkit-autofill:active,
.neu-input:-internal-autofill-selected,
.neu-input:-internal-autofill-previewed,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
input:-internal-autofill-selected,
input:-internal-autofill-previewed {
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: var(--neu-text-dark) !important;
    caret-color: var(--neu-text-dark) !important;
    transition: background-color 5000000s ease-in-out 0s, color 5000000s ease-in-out 0s !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--neu-text-dark) !important;
}

.neu-input-toggle {
    background: transparent;
    border: none;
    outline: none;
    color: var(--neu-text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, transform 0.2s ease;
}

.neu-input-toggle:hover {
    color: var(--neu-text-dark);
    transform: scale(1.1);
}

.neu-input-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

/* Errors & Status */
.neu-error-msg {
    color: #e11d48;
    font-size: 12.5px;
    font-weight: 600;
    padding-left: 20px;
    margin-top: 2px;
}

.neu-status-box {
    padding: 12px 18px;
    border-radius: 18px;
    background: var(--neu-bg);
    box-shadow: inset 2px 2px 6px var(--neu-shadow-dark), inset -2px -2px 6px var(--neu-shadow-light);
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Options (Remember & Forgot) */
.neu-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 6px;
    font-size: 13.5px;
}

.neu-remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--neu-text-muted);
    font-weight: 500;
    user-select: none;
}

.neu-checkbox-custom {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--neu-bg);
    box-shadow: inset 2px 2px 5px var(--neu-shadow-dark), inset -2px -2px 5px var(--neu-shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.neu-checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.neu-checkbox-input:checked + .neu-checkbox-custom {
    background: var(--neu-accent-amber);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
    border-color: #f59e0b;
}

.neu-checkbox-input:checked + .neu-checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2.2px 2.2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.neu-forgot-link {
    color: var(--neu-text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.neu-forgot-link:hover {
    color: var(--neu-text-dark);
}

/* ============================================================
   4. YELLOW & ORANGE GRADIENT BUTTONS (Embossed 3D Style)
   ============================================================ */
.neu-btn-submit {
    height: 60px;
    width: 100%;
    border-radius: 9999px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #ea580c 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 6px 6px 16px var(--neu-shadow-dark), -6px -6px 16px var(--neu-shadow-light), 0 8px 24px rgba(245, 158, 11, 0.45);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    outline: none;
    margin-top: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.neu-btn-submit:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 45%, #ea580c 100%);
    box-shadow: 8px 8px 22px var(--neu-shadow-dark), -8px -8px 22px var(--neu-shadow-light), 0 10px 28px rgba(245, 158, 11, 0.6);
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.neu-btn-submit:active {
    box-shadow: inset 4px 4px 8px rgba(180, 83, 9, 0.8), inset -4px -4px 8px rgba(251, 191, 36, 0.5);
    transform: translateY(2px);
}

.neu-btn-submit svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.6;
    transition: transform 0.2s ease;
}

.neu-btn-submit:hover svg {
    transform: translateX(4px);
}

/* Install Mobile App Button (Yellow & Orange Gradient Embossed) */
.neu-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    margin-top: 14px;
    margin-bottom: 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 5px 5px 14px var(--neu-shadow-dark), -5px -5px 14px var(--neu-shadow-light), 0 6px 18px rgba(245, 158, 11, 0.35);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

.neu-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 7px 7px 18px var(--neu-shadow-dark), -7px -7px 18px var(--neu-shadow-light), 0 8px 24px rgba(245, 158, 11, 0.5);
    filter: brightness(1.05);
}

.neu-install-btn:active {
    box-shadow: inset 3px 3px 6px rgba(180, 83, 9, 0.7);
    transform: translateY(1px);
}

/* Card Footer & Mini Switch Button */
.neu-card-footer {
    margin-top: 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.neu-turnoff-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.neu-turnoff-btn:hover {
    color: var(--neu-text-dark);
}

.neu-mini-switch-btn {
    position: relative;
    width: 56px;
    height: 56px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    margin: 4px 0 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.neu-mini-switch-btn:hover {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.26));
}

.neu-mini-switch-btn:active {
    transform: scale(0.92) translateY(3px);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.neu-mini-switch-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Keyframe Animations */
@keyframes switchFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

@keyframes switchPulseHalo {
    0% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   5. FULL MOBILE RESPONSIVENESS
   ============================================================ */
@media (max-width: 480px) {
    .light-stage {
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        padding: 15px;
        overflow: hidden !important;
    }

    .switch-viewport {
        padding: 20px 14px;
        height: 100vh;
        height: 100dvh;
        overflow: hidden !important;
    }

    .switch-button-trigger {
        width: 175px;
        height: 175px;
    }

    .switch-button-halo {
        width: 210px;
        height: 210px;
    }

    .switch-brand-top {
        margin-bottom: 20px;
    }

    .switch-brand-logo {
        height: 58px;
        max-width: 140px;
    }

    .switch-brand-title {
        font-size: 13.5px;
        letter-spacing: 2px;
    }

    .neu-card-outer {
        width: calc(100% - 30px);
        max-width: 400px;
        margin: 0 auto;
        border-radius: 28px;
        padding: 2px;
    }

    .neu-card {
        border-radius: 26px;
        padding: 24px 8px 18px;
        background: var(--neu-bg);
    }

    .neu-form {
        padding: 0 15px;
    }

    .neu-card-logo {
        max-height: 52px; /* +30% larger */
    }

    .neu-title {
        font-size: 21px;
    }

    .neu-input-wrapper {
        height: 48px;
        padding: 0 14px 0 16px;
    }

    .neu-input {
        font-size: 14px;
        line-height: 48px;
    }

    .neu-btn-submit {
        height: 50px;
        font-size: 13.5px;
    }

    .neu-card-footer {
        margin-top: 18px;
    }

    .neu-mini-switch-btn {
        width: 46px;
        height: 46px;
    }

    .neu-install-btn {
        padding: 7px 14px;
        font-size: 11.5px;
    }
}

/* ============================================================
   6. TEMPORARILY DISABLED POPUP NOTIFICATION (Re-enableable)
   ============================================================ */
#mobileAppInstallBanner,
.shr-app-notices,
#shrAppNotices {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
