/* ==========================================================================
   UPOLOBDHI - Dynamic Saffron 3D Fluid Authentication Suite
   - Dynamic Multi-Color Animated Aurora Background & Floating Orbs
   - Saffron Orange Based 3D Fluid Blob Modal
   - Bigger Module with Smooth, Stable Floating Elevation on Hover
   - Official Kolkata Police Force Emblem Badge at the Top
   - Multi-Color Standalone Gradient Badges & Pill Controls
   - 100% Rock-Solid Button Reliability & Strict Zero-Scroll Lock
   ========================================================================== */

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

:root {
    /* Multi-Color Dynamic Spectrum */
    --saffron-primary: #FF6F00;
    --saffron-vibrant: #FF8500;
    --saffron-deep: #E65100;
    --saffron-glow: rgba(255, 111, 0, 0.45);
    
    --aurora-gradient: linear-gradient(135deg, #060B1E 0%, #190934 25%, #430E47 50%, #C2410C 75%, #0284C7 100%);
    
    /* Warm Saffron-Tinted Luxury Frosted Glass */
    --blob-surface: linear-gradient(145deg, rgba(255, 254, 250, 0.97) 0%, rgba(255, 248, 238, 0.95) 55%, rgba(255, 240, 224, 0.93) 100%);
    
    /* 3D Extrusion Rim Layer - Vibrant Saffron to Magenta Amber */
    --blob-extrusion: linear-gradient(135deg, #FF6F00 0%, #E65100 45%, #9C27B0 100%);
    
    /* Multi-Color Badges */
    --badge-saffron: linear-gradient(135deg, #FF6F00 0%, #FFA000 100%);
    --badge-cyan: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    --badge-magenta: linear-gradient(135deg, #FF3D00 0%, #E0288E 100%);
    --badge-emerald: linear-gradient(135deg, #10B981 0%, #00C6FF 100%);
    --badge-violet: linear-gradient(135deg, #7B2CBF 0%, #FF6F00 100%);
    
    /* Action Button - Multi-Color Flame */
    --btn-gradient: linear-gradient(90deg, #FF6F00 0%, #FF3D00 45%, #7B2CBF 100%);
    --btn-hover-gradient: linear-gradient(90deg, #FFA000 0%, #FF6F00 45%, #9C27B0 100%);
    
    /* Typography & Contrast */
    --text-primary: #1E1B4B;
    --text-secondary: #475569;
    --text-muted: #64748B;
    
    /* Pill Field Styles */
    --pill-bg: rgba(255, 255, 255, 0.7);
    --pill-border: rgba(255, 255, 255, 0.95);
    --pill-focus-border: #FF6F00;
    --pill-focus-shadow: 0 0 0 3px rgba(255, 111, 0, 0.35);
}

/* Base Reset & Strict Zero-Scroll Locking */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden !important; /* Strict: Never scrollable */
    overscroll-behavior: none;
}

body.blob-auth-body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    max-height: 100vh;
    background: var(--aurora-gradient);
    background-size: 300% 300%;
    animation: dynamicMultiColorAurora 18s ease infinite alternate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 12px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden !important;
}

/* Dynamic Multi-Color Background Keyframes */
@keyframes dynamicMultiColorAurora {
    0% { background-position: 0% 25%; }
    50% { background-position: 100% 75%; }
    100% { background-position: 25% 100%; }
}

/* Ambient Floating Background Orbs */
.blob-ambient-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(85px);
    opacity: 0.65;
    will-change: transform;
}

.blob-orb-1 {
    top: -8vw;
    left: -6vw;
    width: 46vw;
    height: 46vw;
    background: radial-gradient(circle, rgba(255, 111, 0, 0.45) 0%, transparent 70%);
    animation: floatOrb1 20s ease-in-out infinite alternate;
}

.blob-orb-2 {
    bottom: -10vw;
    right: -8vw;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.38) 0%, transparent 70%);
    animation: floatOrb2 24s ease-in-out infinite alternate;
}

.blob-orb-3 {
    top: 25%;
    right: 10%;
    width: 38vw;
    height: 38vw;
    background: radial-gradient(circle, rgba(224, 40, 142, 0.32) 0%, transparent 70%);
    animation: floatOrb3 18s ease-in-out infinite alternate;
}

.blob-orb-4 {
    bottom: 20%;
    left: 8%;
    width: 32vw;
    height: 32vw;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.35) 0%, transparent 70%);
    animation: floatOrb4 22s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6vw, 5vw) scale(1.15); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-6vw, -4vw) scale(1.12); }
}

@keyframes floatOrb3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5vw, 4vw) scale(0.95); }
}

@keyframes floatOrb4 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4vw, -3vw) scale(1.1); }
}

/* Top Navigation Bar */
.blob-top-nav {
    width: 100%;
    max-width: 1100px;
    height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
}

.blob-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    cursor: pointer;
}

.blob-nav-btn:hover {
    background: rgba(255, 255, 255, 0.38);
    border-color: #FFFFFF;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blob-kp-crest-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.6px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.blob-kp-crest-top img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FFFFFF;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Main Container Stage - Centered in Viewport & Larger Size */
.blob-auth-stage {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 630px; /* Large, commanding module */
    margin: auto 0;
    flex-shrink: 1;
}

/* Card Wrapper - Floating Elevation on Mouse Over */
.blob-card-wrapper {
    position: relative;
    width: 100%;
    padding: 48px 14px 14px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* Gentle, Rock-Solid Floating Elevation on Hover */
.blob-card-wrapper:hover {
    transform: translateY(-8px);
}

.blob-card-wrapper:hover .blob-ground-shadow {
    transform: scale(1.08);
    opacity: 0.75;
    filter: blur(18px);
}

.blob-card-wrapper:hover .blob-card {
    box-shadow: 
        inset 0 3px 6px rgba(255, 255, 255, 0.95),
        inset 0 -4px 12px rgba(255, 111, 0, 0.15),
        0 24px 52px rgba(230, 81, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 3D Saffron Extrusion Rim Layer */
.blob-extrusion-layer {
    position: absolute;
    top: 52px;
    left: 18px;
    right: 4px;
    bottom: 6px;
    background: var(--blob-extrusion);
    border-radius: 46% 54% 56% 44% / 46% 48% 52% 54%;
    z-index: 1;
    box-shadow: 0 22px 48px rgba(230, 81, 0, 0.4);
    pointer-events: none;
}

/* Ground Cast Shadow */
.blob-ground-shadow {
    position: absolute;
    bottom: -12px;
    left: 10%;
    width: 80%;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(15, 8, 40, 0.55) 0%, transparent 72%);
    filter: blur(14px);
    z-index: 0;
    pointer-events: none;
    transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease;
}

/* Main Fluid Blob Card - Saffron Orange Based, Larger & Spacious */
.blob-card {
    position: relative;
    z-index: 2;
    width: 100%;
    background: var(--blob-surface);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 42% 58% 62% 38% / 45% 46% 54% 55%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 56px 46px 28px;
    box-shadow: 
        inset 0 3px 6px rgba(255, 255, 255, 0.95),
        inset 0 -4px 10px rgba(255, 111, 0, 0.12),
        0 18px 45px rgba(230, 81, 0, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.45s ease;
}

/* Floating Official Kolkata Police Crest Avatar Badge - Larger */
.blob-avatar-badge {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 104px;
    height: 104px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 24px rgba(230, 81, 0, 0.35),
        0 0 0 3px rgba(255, 255, 255, 0.95),
        0 0 0 6px rgba(255, 111, 0, 0.45);
    z-index: 4;
    pointer-events: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blob-avatar-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.16));
}

/* Card Header Typography */
.blob-card-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #1E1B4B;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
    line-height: 1.15;
}

.blob-card-subtitle {
    font-size: 0.82rem;
    font-weight: 800;
    color: #E65100; /* Deep Saffron accent */
    text-transform: uppercase;
    letter-spacing: 1.4px;
    text-align: center;
    margin-bottom: 16px;
}

/* Flash / Alert Banners */
.blob-alert {
    width: 100%;
    border-radius: 16px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.blob-alert-success {
    background: rgba(220, 252, 231, 0.92);
    border: 1px solid #22c55e;
    color: #15803d;
}

.blob-alert-danger {
    background: rgba(254, 226, 226, 0.92);
    border: 1px solid #ef4444;
    color: #b91c1c;
}

/* Form Container */
.blob-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Standalone Multi-Color Gradient Badges + Pill Input Row */
.blob-input-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.blob-input-badge {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 17px;
    background: var(--badge-saffron);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.28rem;
    box-shadow: 0 6px 14px rgba(255, 111, 0, 0.32);
    flex-shrink: 0;
    pointer-events: none;
    transition: transform 0.2s ease;
}

/* Multi-Color Badge Variations */
.badge-saffron {
    background: var(--badge-saffron) !important;
    box-shadow: 0 6px 14px rgba(255, 111, 0, 0.35) !important;
}

.badge-cyan {
    background: var(--badge-cyan) !important;
    box-shadow: 0 6px 14px rgba(0, 198, 255, 0.35) !important;
}

.badge-magenta {
    background: var(--badge-magenta) !important;
    box-shadow: 0 6px 14px rgba(224, 40, 142, 0.35) !important;
}

.badge-emerald {
    background: var(--badge-emerald) !important;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.35) !important;
}

.badge-violet {
    background: var(--badge-violet) !important;
    box-shadow: 0 6px 14px rgba(123, 44, 191, 0.35) !important;
}

.blob-input-wrapper {
    position: relative;
    flex-grow: 1;
    width: 100%;
}

.blob-pill-input {
    width: 100%;
    height: 50px;
    border-radius: 50px;
    border: 2px solid var(--pill-border);
    background: var(--pill-bg);
    padding: 0 46px 0 22px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.blob-pill-input::placeholder {
    color: rgba(71, 85, 105, 0.7);
    font-weight: 500;
}

.blob-pill-input:focus {
    border-color: var(--pill-focus-border);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--pill-focus-shadow);
}

/* Eye Password Toggle Button */
.blob-input-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #475569;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.2s ease, transform 0.2s ease;
}

.blob-input-toggle-btn:hover {
    color: #FF6F00;
    transform: translateY(-50%) scale(1.15);
}

/* Utility Row */
.blob-utility-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.blob-remember-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}

.blob-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: #FF6F00;
    cursor: pointer;
}

.blob-forgot-link {
    color: #E65100;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.blob-forgot-link:hover {
    color: #FF6F00;
    text-decoration: underline;
}

/* Primary Action Pill Button - Multi-Color Saffron Flame */
.blob-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.blob-action-btn {
    width: 100%;
    max-width: 290px;
    height: 52px;
    border-radius: 50px;
    border: none;
    background: var(--btn-gradient);
    color: #FFFFFF;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 111, 0, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
    user-select: none;
    z-index: 5;
}

.blob-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 111, 0, 0.6);
    background: var(--btn-hover-gradient);
    color: #FFFFFF;
}

.blob-action-btn:active {
    transform: translateY(1px);
}

/* Secondary Sub Link */
.blob-sub-link-container {
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

.blob-sub-link {
    color: #E65100;
    font-weight: 800;
    text-decoration: underline;
    margin-left: 4px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.blob-sub-link:hover {
    color: #FF6F00;
}

/* Quick Dev Testing Chips */
.blob-test-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    z-index: 10;
}

.blob-test-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 111, 0, 0.35);
    font-size: 0.8rem;
    font-weight: 700;
    color: #1E1B4B;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.blob-test-chip:hover {
    background: #FFFFFF;
    border-color: #FF6F00;
    color: #E65100;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 111, 0, 0.25);
}

/* OTP Specific 6-Digit Field */
.blob-otp-input {
    font-size: 1.5rem !important;
    letter-spacing: 12px;
    text-align: center;
    padding-left: 28px !important;
    font-weight: 800;
}

/* 3-Column Profile Name Grid */
.blob-name-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.blob-name-grid .blob-pill-input {
    padding: 0 14px;
    font-size: 0.88rem;
    height: 44px;
}

/* Minimal Attribution Footer - Anchored at Bottom, Zero Scroll */
.blob-minimal-footer {
    position: relative;
    z-index: 10;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.blob-minimal-footer i {
    color: #FF9933; /* Indian Saffron */
    font-size: 0.92rem;
}

/* Media query for small laptop viewports */
@media (max-height: 750px) {
    body.blob-auth-body {
        padding: 6px 16px 6px;
    }
    .blob-card-wrapper {
        padding: 34px 8px 8px;
    }
    .blob-card {
        padding: 38px 28px 20px;
    }
    .blob-avatar-badge {
        width: 74px;
        height: 74px;
    }
    .blob-avatar-logo {
        width: 56px;
        height: 56px;
    }
    .blob-card-title {
        font-size: 1.7rem;
    }
    .blob-form {
        gap: 8px;
    }
    .blob-pill-input {
        height: 40px;
        font-size: 0.88rem;
    }
    .blob-input-badge {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.05rem;
    }
    .blob-action-btn {
        height: 42px;
        font-size: 0.94rem;
    }
    .blob-name-grid .blob-pill-input {
        height: 38px;
    }
}
