/* ============================================================
   MANT Construction Management System
   Premium Login Page Styles
   Author: ASN IT Solution
   Version: 2.0
   ============================================================ */

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
}

/* ============================================
   BACKGROUND SCENE
   ============================================ */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.9) saturate(1.1) contrast(1.05);
    animation: slowZoom 35s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(251, 191, 36, 0.15) 0%, transparent 50%), linear-gradient(135deg, rgba(255, 237, 213, 0.55) 0%, rgba(254, 215, 170, 0.4) 30%, rgba(253, 186, 116, 0.5) 60%, rgba(249, 168, 212, 0.3) 100%);
}

.sun-rays {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.25) 0%, transparent 40%, transparent 60%, rgba(251, 191, 36, 0.1) 100%);
    filter: blur(40px);
    animation: sunPulse 6s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(30, 64, 175, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 64, 175, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 50s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

/* Dust Particles */
.dust-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

    .dust-particles::before {
        content: '';
        position: absolute;
        width: 3px;
        height: 3px;
        background: rgba(251, 191, 36, 0.4);
        border-radius: 50%;
        box-shadow: 100px 200px 0 rgba(251, 191, 36, 0.3), 300px 400px 0 rgba(251, 191, 36, 0.2), 500px 100px 0 rgba(251, 191, 36, 0.4), 700px 500px 0 rgba(251, 191, 36, 0.3), 900px 300px 0 rgba(251, 191, 36, 0.2), 1100px 600px 0 rgba(251, 191, 36, 0.4), 1300px 200px 0 rgba(251, 191, 36, 0.3), 200px 700px 0 rgba(251, 191, 36, 0.2), 600px 800px 0 rgba(251, 191, 36, 0.3), 1000px 900px 0 rgba(251, 191, 36, 0.4);
        animation: dustFloat 25s linear infinite;
    }

@keyframes dustFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* ============================================
   BUILDINGS SILHOUETTE
   ============================================ */
.buildings {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    pointer-events: none;
    z-index: 2;
}

.building {
    position: absolute;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(2, 6, 23, 0.9) 100%);
    border-top: 2px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(251, 191, 36, 0.05);
    animation: buildingRise 1.4s ease-out both;
}

    .building::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.7) 2px, transparent 3px), radial-gradient(circle at 45% 35%, rgba(251, 191, 36, 0.5) 2px, transparent 3px), radial-gradient(circle at 75% 25%, rgba(251, 191, 36, 0.6) 2px, transparent 3px), radial-gradient(circle at 25% 60%, rgba(251, 191, 36, 0.4) 2px, transparent 3px), radial-gradient(circle at 55% 70%, rgba(251, 191, 36, 0.6) 2px, transparent 3px), radial-gradient(circle at 85% 55%, rgba(251, 191, 36, 0.5) 2px, transparent 3px);
        background-size: 50px 50px;
        opacity: 0.9;
        animation: windowsFlicker 5s ease-in-out infinite;
    }

@keyframes windowsFlicker {
    0%, 100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes buildingRise {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.building-1 {
    left: 0%;
    width: 10%;
    height: 65%;
    animation-delay: 0.1s;
}

.building-2 {
    left: 8%;
    width: 14%;
    height: 85%;
    animation-delay: 0.2s;
}

.building-3 {
    left: 20%;
    width: 9%;
    height: 55%;
    animation-delay: 0.3s;
}

.building-4 {
    left: 27%;
    width: 15%;
    height: 90%;
    animation-delay: 0.4s;
}

.building-5 {
    left: 40%;
    width: 11%;
    height: 70%;
    animation-delay: 0.5s;
}

.building-6 {
    left: 49%;
    width: 16%;
    height: 95%;
    animation-delay: 0.6s;
}

.building-7 {
    left: 63%;
    width: 10%;
    height: 60%;
    animation-delay: 0.7s;
}

.building-8 {
    left: 71%;
    width: 17%;
    height: 88%;
    animation-delay: 0.8s;
}

.building-9 {
    left: 86%;
    width: 14%;
    height: 75%;
    animation-delay: 0.9s;
}

/* ============================================
   CONSTRUCTION CRANE
   ============================================ */
.crane {
    position: absolute;
    bottom: 42%;
    left: 15%;
    z-index: 3;
    animation: craneSway 7s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes craneSway {
    0%, 100% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

.crane-tower {
    width: 12px;
    height: 220px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6), inset 0 0 5px rgba(0, 0, 0, 0.2);
    position: relative;
    border-radius: 2px;
}

    .crane-tower::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: repeating-linear-gradient(45deg, transparent 0, transparent 8px, rgba(0, 0, 0, 0.15) 8px, rgba(0, 0, 0, 0.15) 10px), repeating-linear-gradient(-45deg, transparent 0, transparent 8px, rgba(0, 0, 0, 0.15) 8px, rgba(0, 0, 0, 0.15) 10px);
        opacity: 0.5;
    }

.crane-jib {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 10px;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
    border-radius: 2px;
}

.crane-counter {
    position: absolute;
    top: 0;
    right: 100%;
    width: 60px;
    height: 8px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
    border-radius: 2px;
}

.crane-hook {
    position: absolute;
    top: 10px;
    left: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: hookBob 4s ease-in-out infinite;
}

@keyframes hookBob {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(40px);
    }
}

.crane-cable {
    width: 2px;
    height: 60px;
    background: rgba(251, 191, 36, 0.8);
}

.crane-hook-block {
    width: 12px;
    height: 12px;
    background: #fbbf24;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

/* ============================================
   PILING RIG
   ============================================ */
.piling-rig {
    position: absolute;
    bottom: 42%;
    right: 12%;
    z-index: 3;
    animation: rigVibrate 0.3s ease-in-out infinite;
}

@keyframes rigVibrate {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(1px);
    }
}

.rig-mast {
    width: 10px;
    height: 260px;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    position: relative;
    border-radius: 2px;
}

    .rig-mast::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: repeating-linear-gradient(0deg, transparent 0, transparent 15px, rgba(0, 0, 0, 0.2) 15px, rgba(0, 0, 0, 0.2) 17px);
        opacity: 0.4;
    }

.rig-top {
    position: absolute;
    top: -8px;
    left: -15px;
    width: 40px;
    height: 15px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.rig-hammer {
    position: absolute;
    top: 50px;
    left: -20px;
    width: 50px;
    height: 25px;
    background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: hammerStrike 1.2s ease-in-out infinite;
}

@keyframes hammerStrike {
    0%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(80px);
    }

    45% {
        transform: translateY(80px);
    }

    50% {
        transform: translateY(0);
    }
}

.pile {
    position: absolute;
    bottom: 0;
    left: -6px;
    width: 22px;
    height: 100px;
    background: linear-gradient(90deg, #92400e 0%, #a16207 50%, #92400e 100%);
    border-radius: 2px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

    .pile::before {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient(0deg, transparent 0, transparent 20px, rgba(0, 0, 0, 0.2) 20px, rgba(0, 0, 0, 0.2) 22px);
    }

/* ============================================
   CONSTRUCTION DOMAIN TILES
   ============================================ */
.domain-tiles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.domain-tile {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(251, 191, 36, 0.2), 0 0 60px rgba(251, 191, 36, 0.3);
    animation: tileFloat 5s ease-in-out infinite;
    overflow: hidden;
}

    .domain-tile::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 0%, transparent 45%, rgba(0, 0, 0, 0.75) 100%);
        z-index: 1;
    }

    .domain-tile::after {
        content: attr(data-icon);
        position: absolute;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, #fbbf24, #ea580c);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 14px;
        color: white;
        z-index: 2;
        box-shadow: 0 4px 15px rgba(234, 88, 12, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .domain-tile .tile-label {
        position: absolute;
        bottom: 8px;
        left: 0;
        right: 0;
        text-align: center;
        color: white;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        z-index: 2;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        padding: 0 6px;
    }

@keyframes tileFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-20px) rotate(2deg) scale(1.05);
    }
}

/* Individual Tiles */
.tile-building {
    top: 12%;
    left: 6%;
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=400&q=80');
    animation-delay: 0s;
}

.tile-cement {
    top: 8%;
    right: 20%;
    background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=400&q=80');
    animation-delay: 1s;
}

.tile-electricity {
    bottom: 42%;
    left: 4%;
    background-image: url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?w=400&q=80');
    animation-delay: 2s;
}

.tile-plumbing {
    top: 40%;
    right: 3%;
    background-image: url('https://images.unsplash.com/photo-1585704032915-c3400ca199e7?w=400&q=80');
    animation-delay: 1.5s;
}

.tile-sanitary {
    bottom: 52%;
    right: 22%;
    background-image: url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?w=400&q=80');
    animation-delay: 2.5s;
}

.tile-equipment {
    top: 5%;
    left: 22%;
    background-image: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=400&q=80');
    animation-delay: 3s;
}

.tile-steel {
    top: 75%;
    left: 18%;
    background-image: url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?w=400&q=80');
    animation-delay: 3.5s;
}

.tile-architecture {
    bottom: 8%;
    right: 6%;
    background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=400&q=80');
    animation-delay: 4s;
}

/* ============================================
   LOGIN WRAPPER — FULL VIEW CENTERED
   ============================================ */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ============================================
   PREMIUM LOGIN CARD — SHRUNK
   ============================================ */
.login-card {
    width: 100%;
    max-width: 380px; /* ← Shrunk from 460px */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border-radius: 26px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.15) inset, 0 0 100px -30px rgba(251, 191, 36, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 36px 32px; /* ← Reduced padding */
    position: relative;
    overflow: hidden;
    animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #fbbf24 0%, #f97316 25%, #ef4444 50%, #ec4899 75%, #f97316 100%);
    background-size: 200% 100%;
    animation: borderFlow 3s linear infinite;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.login-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: rotateGlow 30s linear infinite;
}

@keyframes rotateGlow {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   BRAND SECTION
   ============================================ */
.brand-section {
    text-align: center;
    margin-bottom: 26px; /* ← Reduced from 36px */
    position: relative;
    z-index: 1;
}

.brand-mascot {
    position: relative;
    width: 80px; /* ← Shrunk from 110px */
    height: 80px;
    margin: 0 auto 14px;
}

.brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 35%, #ea580c 70%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 45px -12px rgba(251, 191, 36, 0.7), 0 0 0 3px rgba(255, 255, 255, 0.9) inset, 0 -8px 20px rgba(0, 0, 0, 0.1) inset;
    position: relative;
    z-index: 2;
    animation: logoBounce 4s ease-in-out infinite;
}

@keyframes logoBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-6px) rotate(-3deg);
    }

    75% {
        transform: translateY(-6px) rotate(3deg);
    }
}

.brand-logo i {
    font-size: 38px; /* ← Shrunk from 54px */
    color: white;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.25));
}

.brand-mascot::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 26px;
    border: 2px dashed rgba(251, 191, 36, 0.6);
    animation: mascotRing 25s linear infinite;
}

@keyframes mascotRing {
    to {
        transform: rotate(360deg);
    }
}

.brand-mascot::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 34px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px; /* ← Shrunk from 34px */
    font-weight: 900;
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 15px rgba(251, 191, 36, 0.4));
}

.brand-subtitle {
    font-size: 10px;
    font-weight: 700;
    color: #78716c;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .brand-subtitle::before,
    .brand-subtitle::after {
        content: '';
        width: 28px;
        height: 1px;
        background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    }

/* ============================================
   FORM FIELDS
   ============================================ */
.form-group-premium {
    margin-bottom: 16px; /* ← Reduced from 22px */
    position: relative;
    z-index: 1;
}

.form-label-premium {
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    color: #57534e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    padding-left: 3px;
}

    .form-label-premium i {
        margin-right: 6px;
        font-size: 12px;
        color: #ea580c;
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #a8a29e;
    font-size: 14px;
    z-index: 2;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 13px 16px 13px 44px; /* ← Shrunk from 16px 20px 16px 52px */
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid #e7e5e4;
    border-radius: 13px;
    color: #1c1917;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: 'Inter', sans-serif;
}

    .form-input::placeholder {
        color: #a8a29e;
        font-weight: 400;
        font-size: 13px;
    }

    .form-input:focus {
        background: white;
        border-color: #f59e0b;
        box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2), 0 10px 30px -10px rgba(251, 191, 36, 0.4);
        color: #1c1917;
    }

        .form-input:focus ~ .input-icon {
            color: #ea580c;
            transform: scale(1.15);
            filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
        }

    .form-input:hover {
        border-color: #d6d3d1;
        background: rgba(255, 255, 255, 0.95);
    }

.password-toggle {
    position: absolute;
    right: 14px;
    color: #a8a29e;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 6px;
    border-radius: 8px;
}

    .password-toggle:hover {
        color: #ea580c;
        transform: scale(1.15);
        background: rgba(251, 191, 36, 0.15);
    }

.field-validation-error {
    display: block;
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
    margin-top: 5px;
    padding-left: 6px;
    animation: shakeIn 0.4s ease;
}

    .field-validation-error::before {
        content: '⚠ ';
        margin-right: 4px;
    }

@keyframes shakeIn {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ============================================
   OPTIONS ROW
   ============================================ */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.checkbox-premium {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #57534e;
    font-size: 12px;
    font-weight: 600;
    user-select: none;
    transition: color 0.3s ease;
}

    .checkbox-premium:hover {
        color: #ea580c;
    }

    .checkbox-premium input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

.checkmark {
    height: 18px;
    width: 18px;
    background: white;
    border: 2px solid #d6d3d1;
    border-radius: 5px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-premium:hover .checkmark {
    border-color: #f59e0b;
    background: rgba(251, 191, 36, 0.1);
}

.checkbox-premium input:checked ~ .checkmark {
    background: linear-gradient(135deg, #fbbf24, #ea580c);
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-premium input:checked ~ .checkmark::after {
    display: block;
}

.forgot-link {
    color: #78716c;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

    .forgot-link::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #f59e0b, #ea580c);
        transition: width 0.3s ease;
        border-radius: 2px;
    }

    .forgot-link:hover {
        color: #ea580c;
        text-decoration: none;
    }

        .forgot-link:hover::after {
            width: 100%;
        }

/* ============================================
   LOGIN BUTTON
   ============================================ */
.btn-login {
    width: 100%;
    padding: 14px 20px; /* ← Shrunk from 18px 24px */
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 25%, #ea580c 50%, #dc2626 75%, #ea580c 100%);
    background-size: 250% 250%;
    border: none;
    border-radius: 13px;
    color: white;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 40px -12px rgba(234, 88, 12, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.2) inset, inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: buttonGradient 5s ease infinite;
    z-index: 1;
    font-family: 'Inter', sans-serif;
}

@keyframes buttonGradient {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 25px 55px -12px rgba(234, 88, 12, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.3) inset, inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-login:active {
    transform: translateY(-2px) scale(0.99);
}

.btn-login i {
    margin-right: 8px;
    font-size: 15px;
}

/* ============================================
   ERROR ALERT
   ============================================ */
.alert-premium {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.12) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: #991b1b;
    font-size: 12px;
    font-weight: 600;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s ease;
    position: relative;
    z-index: 1;
}

    .alert-premium i {
        font-size: 18px;
        color: #dc2626;
        flex-shrink: 0;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.login-footer {
    text-align: center;
    margin-top: 24px; /* ← Reduced from 32px */
    color: #a8a29e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

    .login-footer .divider {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

        .login-footer .divider::before,
        .login-footer .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, transparent, #d6d3d1, transparent);
        }

    .login-footer i {
        color: #ea580c;
        font-size: 12px;
    }

/* ============================================
   FLOATING INFO CARDS
   ============================================ */
.info-card-float {
    position: absolute;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    color: #1c1917;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(251, 191, 36, 0.15);
    z-index: 5;
    animation: cardFloat 7s ease-in-out infinite;
}

    .info-card-float i {
        color: #ea580c;
        font-size: 16px;
        filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
    }

    .info-card-float .badge-dot {
        width: 8px;
        height: 8px;
        background: #10b981;
        border-radius: 50%;
        box-shadow: 0 0 12px #10b981;
        animation: dotPulse 2s ease-in-out infinite;
    }

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.info-card-1 {
    top: 12%;
    right: 6%;
    animation-delay: 0s;
}

.info-card-2 {
    bottom: 25%;
    left: 5%;
    animation-delay: 2s;
}

.info-card-3 {
    top: 55%;
    right: 4%;
    animation-delay: 4s;
}

/* ============================================
   LOADING STATE
   ============================================ */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.85;
}

    .btn-login.loading::after {
        content: '';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.btn-login.loading i {
    opacity: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Desktop — hide extra tiles */
@media (max-width: 1199px) {
    .tile-steel,
    .tile-sanitary,
    .tile-equipment,
    .info-card-float {
        display: none;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .domain-tile {
        width: 90px;
        height: 90px;
        border-radius: 20px;
    }

    .tile-plumbing {
        display: none;
    }
}

/* Mobile — hide scene */
@media (max-width: 767px) {
    .domain-tiles,
    .buildings,
    .crane,
    .piling-rig {
        display: none;
    }

    .login-wrapper {
        padding: 15px;
    }

    .login-card {
        max-width: 100%;
        padding: 30px 24px;
        border-radius: 22px;
    }

    .brand-mascot {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }

    .brand-logo i {
        font-size: 32px;
    }

    .brand-title {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .brand-subtitle {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .form-group-premium {
        margin-bottom: 14px;
    }

    .form-input {
        padding: 12px 14px 12px 42px;
        font-size: 14px;
        border-radius: 12px;
    }

    .input-icon {
        left: 14px;
        font-size: 13px;
    }

    .form-label-premium {
        font-size: 9px;
    }

    .options-row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .btn-login {
        padding: 13px 20px;
        font-size: 13px;
        letter-spacing: 1.5px;
        border-radius: 12px;
    }

    .login-footer {
        font-size: 9px;
        margin-top: 20px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .login-card {
        padding: 24px 18px;
    }

    .brand-title {
        font-size: 20px;
    }

    .form-input {
        padding: 11px 12px 11px 40px;
        font-size: 13px;
    }
}

/* Landscape Mobile */
@media (max-height: 640px) and (orientation: landscape) {
    .login-wrapper {
        align-items: flex-start;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .login-card {
        padding: 22px 28px;
    }

    .brand-section {
        margin-bottom: 14px;
    }

    .brand-mascot {
        width: 55px;
        height: 55px;
        margin-bottom: 8px;
    }

    .brand-logo i {
        font-size: 24px;
    }

    .brand-title {
        font-size: 18px;
        letter-spacing: 2.5px;
    }

    .form-group-premium {
        margin-bottom: 10px;
    }

    .form-input {
        padding: 10px 12px 10px 38px;
        font-size: 13px;
    }

    .btn-login {
        padding: 11px 18px;
        font-size: 12px;
    }

    .login-footer {
        margin-top: 14px;
        font-size: 9px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
