@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-orange: #FF9900;
    --primary-orange-hover: #e68a00;
    --primary-orange-glow: rgba(255, 153, 0, 0.25);
    --btn-orange-start: #ffaa2b;
    --btn-black-end: #111111;
    --white: #ffffff;
    --noc-text-gray: #cbd5e1;
    --noc-text-dark-gray: #94a3b8;

    /* Premium Glassmorphism Parameters */
    --glass-card-bg: rgba(15, 23, 42, 0.58);
    --glass-card-border: rgba(255, 153, 0, 0.28);
    --glass-input-bg: rgba(0, 0, 0, 0.45) !important;
    --glass-input-border: rgba(255, 255, 255, 0.18);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Default Body configuration for Desktops */
body {
    height: 100vh;
    width: 100%;
    font-family: var(--font-body);
    color: var(--white);
    background-color: #05070c;
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   BACKGROUND - INDUSTRIAL ERP IMAGE WITH OVERLAY
   ========================================================================== */
.telecom-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/login_bg.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.45;
    filter: blur(2px) contrast(1.15) brightness(0.85);
    z-index: 1;
    pointer-events: none;
}

/* Dark transparent overlay over the background image */
.login-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.78) 0%, rgba(17, 24, 39, 0.65) 100%);
}

/* ==========================================================================
   LEFT SECTION (60% Width) - CORE COMMAND SYSTEM INFO
   ========================================================================== */
.left-section {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5rem 4.5rem 4.5rem;
    height: 100vh;
    overflow-y: auto;
}

/* Core Content & Hero Grid */
.intro-content-container {
    margin: auto 0;
    max-width: 92%;
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
}

/* Hero Section */
.left-hero-section {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--primary-orange);
    letter-spacing: 2.5px;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.12;
    color: var(--white);
    letter-spacing: -1.5px;
    margin-bottom: 1.6rem;
}

.text-gradient-orange {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ffc107 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 3px rgba(255, 153, 0, 0.3));
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--noc-text-gray);
    max-width: 90%;
}

/* ==========================================================================
   LEFT FEATURE SECTION - 2 X 2 GRID OF PREMIUM GLASS CARDS
   ========================================================================== */
.feature-grid-noc {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    align-items: stretch;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.feature-glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    width: 100%;
}

.feature-glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 153, 0, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 153, 0, 0.1);
    background: rgba(255, 255, 255, 0.09);
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.noc-badge-light-container {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 153, 0, 0.15);
    border: 1px solid rgba(255, 153, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-card-icon {
    font-size: 0.95rem;
    color: var(--primary-orange);
}

.feature-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.3px;
}

.feature-card-desc {
    font-size: 0.82rem;
    color: var(--noc-text-dark-gray);
    line-height: 1.4;
}

/* Left Bottom Section */
.left-section-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--noc-text-dark-gray);
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.left-section-footer-details {
    display: flex;
    gap: 2rem;
}

.left-section-footer-details span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.left-section-footer-details i {
    color: var(--primary-orange);
}

/* ==========================================================================
   RIGHT SECTION (40% Width) - LOGIN CARD
   ========================================================================== */
.right-section {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem;
    position: relative;
    height: 100vh;
}

/* Enhanced Glassmorphism Login Card (Premium Opacity & Backdrop Blur) */
.glass-login-card {
    position: relative;
    width: 100%;
    max-width: 470px;
    border: 1px solid var(--glass-card-border);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: 3.2rem 2.8rem;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.55),
        0 0 25px rgba(255, 153, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 0 0 1px rgba(255, 153, 0, 0.15);
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1), cardGlowPulse 8s infinite alternate ease-in-out;
    overflow: hidden;
}

@keyframes cardGlowPulse {
    0% {
        border-color: rgba(255, 153, 0, 0.28);
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 153, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    100% {
        border-color: rgba(255, 153, 0, 0.48);
        box-shadow: 0 25px 75px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 153, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-network-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

#network-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.glass-card-form-wrapper {
    position: relative;
    z-index: 2;
}

.card-brand-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Prominent Logo Badge Container */
.logo-badge-container {
    width: fit-content;
    height: auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid rgba(255, 153, 0, 0.35);
    border-radius: 20px;
    padding: 16px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.6rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 153, 0, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: all 0.3s ease;
}

.logo-badge-container:hover {
    box-shadow: 0 14px 45px rgba(255, 153, 0, 0.3);
    transform: scale(1.03);
}

.company-logo {
    max-height: 72px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Prominent Mithash ERP Title */
.company-brand-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.company-brand-title .brand-orange {
    color: #FF9900;
    background: linear-gradient(135deg, #FF9900 0%, #FFB700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 4px rgba(255, 153, 0, 0.3));
}

.company-tagline {
    font-size: 0.84rem;
    color: var(--noc-text-dark-gray);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Alerts */
.alert-custom-banner {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.6rem;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: shakeAlert 0.4s ease-in-out;
}

@keyframes shakeAlert {

    0%,
    100% {
        transform: translateX(0);
    }

    25%,
    75% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }
}

/* Inputs groups & structures */
.input-container-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.input-label-clean {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.55rem;
    transition: color 0.2s ease;
    letter-spacing: 0.3px;
}

.input-wrapper-glass {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix-icon {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    pointer-events: none;
}

.input-field-glass {
    width: 100%;
    padding: 13px 15px 13px 44px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    border-radius: 14px;
    border: 1px solid var(--glass-input-border);
    background: var(--glass-input-bg);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--white);
}

.input-field-glass::placeholder {
    color: #64748b;
}

/* Focus: Mithash Orange Focus Border */
.input-field-glass:focus {
    outline: none;
    border-color: var(--primary-orange) !important;
    background: rgba(0, 0, 0, 0.65) !important;
    box-shadow: 0 0 0 4px var(--primary-orange-glow) !important;
}

/* OVERRIDE WebKit Autofill White Background styling in Chrome/Edge */
.input-field-glass:-webkit-autofill,
.input-field-glass:-webkit-autofill:hover,
.input-field-glass:-webkit-autofill:focus,
.input-field-glass:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0e1626 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.input-field-glass:-webkit-autofill:focus {
    border-color: var(--primary-orange) !important;
    -webkit-box-shadow: 0 0 0 1000px #0e1626 inset, 0 0 0 4px var(--primary-orange-glow) !important;
}

.input-container-group:focus-within .input-label-clean {
    color: var(--primary-orange);
}

.input-container-group:focus-within .input-prefix-icon {
    color: var(--primary-orange);
}

/* Password toggler */
.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--primary-orange);
}

/* Options Bar: Remember */
.options-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.8rem 0;
    font-size: 0.84rem;
}

/* Custom Enterprise Checkbox Styling */
.custom-checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.custom-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    cursor: pointer;
}

.custom-checkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.custom-checkbox-container:hover .custom-checkbox-box {
    border-color: #FF9900;
    background: rgba(255, 153, 0, 0.12);
    box-shadow: 0 0 8px rgba(255, 153, 0, 0.3);
}

.custom-checkbox-input:checked+.custom-checkbox-box {
    background: linear-gradient(135deg, #FF9900 0%, #E68A00 100%);
    border-color: #FF9900;
    box-shadow: 0 0 12px rgba(255, 153, 0, 0.45);
}

.check-icon {
    font-size: 0.72rem;
    color: #ffffff;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-checkbox-input:checked+.custom-checkbox-box .check-icon {
    transform: scale(1);
}

.custom-checkbox-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--noc-text-gray);
    transition: color 0.2s ease;
}

.custom-checkbox-container:hover .custom-checkbox-label {
    color: var(--white);
}

/* Button & animations */
.btn-login {
    position: relative;
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #ffaa2b 0%, #FF9900 50%, #cc7a00 100%);
    border: none;
    border-radius: 14px;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.35);
}

.btn-login:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 8px 30px rgba(255, 153, 0, 0.55);
    background: linear-gradient(135deg, #ffb84d 0%, #e68a00 50%, #b36b00 100%);
}

.btn-login:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.2);
}

.btn-login:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility outline */
.input-field-glass:focus-visible,
.btn-login:focus-visible,
.custom-checkbox-container input:focus-visible+.custom-checkbox-box {
    outline: 2.5px solid var(--primary-orange);
    outline-offset: 2.5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .left-section {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 3rem 2.5rem;
    }

    .right-section {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .left-section {
        flex: 1;
        max-width: 100%;
        height: auto;
        padding: 3rem 2rem 2rem;
    }

    .right-section {
        flex: 1;
        max-width: 100%;
        height: auto;
        padding: 2rem;
    }

    .feature-grid-noc {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }
}