/* ===================================
   IWMS Bootstrap Custom Styles
   Exact Recreation of React Version
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --purple-color: #8b5cf6;
    --orange-color: #f97316;
    --teal-color: #14b8a6;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #dbeafe 50%, #e0e7ff 100%);
    overflow-x: hidden;
}

/* Utility Classes */
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bg-white{
    --bs-bg-opacity: 0 !important;
    background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important;
}
.bg-why-choose-us{
    /* --bs-bg-opacity: 0 !important; */
    background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important;
}
.pointer-events-none {
    pointer-events: none;
}

.backdrop-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Background Styles */
.bg-gradient-light {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8) 0%, rgba(219, 234, 254, 0.9) 50%, rgba(224, 231, 255, 0.8) 100%);
}

.header-gradient {
    background: linear-gradient(90deg, rgba(241, 245, 249, 0.95) 0%, rgba(219, 234, 254, 0.95) 50%, rgba(224, 231, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Interactive Urban Icons */
.urban-icon {
    position: absolute;
    cursor: pointer;
    transition: var(--transition);
}

.urban-icon i {
    font-size: 4rem;
    color: rgba(59, 130, 246, 0.2);
    transition: var(--transition);
}

.urban-icon:hover i {
    transform: scale(1.1);
    color: rgba(59, 130, 246, 0.6);
}

.icon-interactive {
    transition: var(--transition);
}

/* Particles */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #93c5fd, #a5b4fc);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: var(--transition);
}

.particle:hover {
    transform: scale(1.5);
    background: linear-gradient(45deg, #f59e0b, #ef4444);
}

/* Animations */
@keyframes float-1 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-20px) translateX(10px) rotate(2deg); 
    }
    66% { 
        transform: translateY(-10px) translateX(-5px) rotate(-1deg); 
    }
}

@keyframes float-2 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) translateX(-10px) rotate(-2deg); 
    }
    75% { 
        transform: translateY(-25px) translateX(15px) rotate(3deg); 
    }
}

@keyframes float-3 {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-30px) translateX(20px) rotate(4deg); 
    }
}

@keyframes pulse-custom {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.7; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 1; 
    }
}

@keyframes bounce-slow {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

@keyframes float-particle {
    0%, 100% { 
        transform: translateY(0px) translateX(0px); 
        opacity: 0.3; 
    }
    25% { 
        transform: translateY(-30px) translateX(20px); 
        opacity: 0.7; 
    }
    50% { 
        transform: translateY(-10px) translateX(-15px); 
        opacity: 1; 
    }
    75% { 
        transform: translateY(-25px) translateX(10px); 
        opacity: 0.8; 
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-float-1 { animation: float-1 6s ease-in-out infinite; }
.animate-float-2 { animation: float-2 8s ease-in-out infinite; }
.animate-float-3 { animation: float-3 7s ease-in-out infinite; }
.animate-pulse-custom { animation: pulse-custom 3s ease-in-out infinite; }
.animate-bounce-slow { animation: bounce-slow 4s ease-in-out infinite; }
.animate-float-particle { animation: float-particle 6s ease-in-out infinite; }

/* Logo Styles */
.logo-container {
    width: 160px;
    height: 160px;
    transition: var(--transition);
}

.logo-inner {
    width: 144px;
    height: 144px;
}

.logo-fallback {
    display: none;
    width: 64px;
    height: 64px;
    font-size: 14px;
}

.star-badge {
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    font-size: 12px;
}

/* Header Styles */
.header-title {
    font-size: 2.5rem;
    line-height: 1.2;
}

.feature-badge {
    background: linear-gradient(135deg, var(--success-color), var(--teal-color));
    transition: var(--transition);
}

/* Hover Effects */
.hover-transform {
    transition: var(--transition);
}

.hover-transform:hover {
    transform: scale(1.05);
}

.hover-text-primary:hover {
    color: var(--primary-color) !important;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

/* Main Content */
.min-height-custom {
    min-height: calc(100vh - 200px);
}

/* Login Container & Card Flip */
.login-container {
    perspective: 1000px;
    width: 100%;
    max-width: 500px;
    /* height: 580px; */
    height: 626px;
}

.card-flip-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
}

.card-flip-container.flipped {
    transform: rotateY(180deg);
}

.login-card {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.card-back {
    transform: rotateY(180deg);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
}

/* Card Glow Effects */
.card-glow-front {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(148, 163, 184, 0.05), rgba(99, 102, 241, 0.1));
    filter: blur(40px);
    z-index: -1;
}

.card-glow-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(20, 184, 166, 0.05), rgba(59, 130, 246, 0.1));
    filter: blur(40px);
    z-index: -1;
}

/* Login Icon */
.login-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
}

/* Security Badges */
.security-badges {
    font-size: 12px;
}

.security-icon {
    font-size: 12px;
}

.security-divider {
    width: 4px;
    height: 4px;
    background-color: #9ca3af;
    border-radius: 50%;
}

/* Custom Form Inputs */
.input-group-custom {
    position: relative;
}

.custom-input {
    height: 48px;
    padding-left: 3rem;
    padding-right: 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.custom-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.9);
    outline: none;
}

.input-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.input-icon-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    z-index: 10;
    cursor: pointer;
}

/* OTP Inputs */
.otp-inputs {
    gap: 12px;
}

.otp-input {
    width: 48px;
    height: 48px;
    font-size: 20px;
    text-align: center;
    border: 2px solid #d1fae5;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.otp-input:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    outline: none;
}

/* Countdown */
.countdown-dot {
    width: 8px;
    height: 8px;
    animation: pulse 2s infinite;
}

/* Gradient Buttons */
.btn-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5, #6b7280);
    border: none;
    color: white;
    height: 56px;
    font-size: 18px;
    border-radius: 12px;
    transition: var(--transition);
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #2563eb, #4338ca, #4b5563);
    transform: scale(1.05);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-gradient-success {
    background: linear-gradient(135deg, var(--success-color), var(--teal-color), var(--primary-color));
    border: none;
    color: white;
    height: 64px;
    font-size: 18px;
    border-radius: 12px;
    transition: var(--transition);
}

.btn-gradient-success:hover {
    background: linear-gradient(135deg, #059669, #0f766e, #2563eb);
    transform: scale(1.05);
    color: white;
    box-shadow: var(--shadow-lg);
}

/* Building Card */
.building-card {
    max-width: 500px;
    height: 500px;
    position: relative;
}

.building-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../../img/login/smc.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* filter: blur(1px); */
}

.building-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(79, 70, 229, 0.7), rgba(107, 114, 128, 0.75)); */
    /* background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(79, 70, 229, 0.7), rgba(107, 114, 128, 0.75)); */
}

.infrastructure-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.building-content {
    z-index: 10;
    width: 500px;
}

.stat-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: scale(1.05);
}

/* Benefits Section */
.benefits-section {
    background: rgba(255, 255, 255, 0.5);
}

.benefit-card {
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.benefit-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}

.mr-8{
    margin-right: 8rem;;
}
/* Gradient Icon Backgrounds */
.bg-gradient-primary { 
    background: linear-gradient(135deg, var(--primary-color), #4f46e5); 
}

.bg-gradient-success { 
    background: linear-gradient(135deg, var(--success-color), var(--teal-color)); 
}

.bg-gradient-purple { 
    background: linear-gradient(135deg, var(--purple-color), #7c3aed); 
}

.bg-gradient-orange { 
    background: linear-gradient(135deg, var(--orange-color), var(--danger-color)); 
}

.bg-gradient-info { 
    background: linear-gradient(135deg, var(--info-color), var(--primary-color)); 
}

.bg-gradient-teal { 
    background: linear-gradient(135deg, var(--teal-color), var(--success-color)); 
}

.bg-gradient-danger { 
    background: linear-gradient(135deg, var(--danger-color), var(--primary-color)); 
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
}

/* Footer */
.footer-section {
    position: relative;
}

.footer-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2044&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.helpdesk-badge {
    background: linear-gradient(90deg, var(--danger-color), var(--primary-color));
}

/* Toast Styles */
.toast {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.toast-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(20, 184, 166, 0.95));
    color: white;
}

.toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 127, 0.95));
    color: white;
}

.toast-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(99, 102, 241, 0.95));
    color: white;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-title {
        font-size: 2rem;
    }
    
    .login-container {
        height: auto;
        min-height: 630px;
    }
    
    .building-card {
        max-width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .urban-icon i {
        font-size: 2rem;
    }
    
    .header-title {
        font-size: 1.75rem;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .security-divider {
        display: none;
    }
    
    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .benefit-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 0 1rem;
        min-height: 667px;
    }
    
    .custom-input {
        height: 44px;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    
    .btn-gradient-primary,
    .btn-gradient-success {
        height: 48px;
        font-size: 16px;
    }
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #5855f1);
}

/* Loading States */
.loading-state {
    opacity: 0.7;
    pointer-events: none;
}

.loading-state .btn {
    position: relative;
}

.loading-state .btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

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

/* Focus States */
.custom-input:focus,
.otp-input:focus,
button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .urban-icon,
    .particles-container,
    .card-glow-front,
    .card-glow-back {
        display: none;
    }
    
    .login-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Forgot pass */
/* Forgot Password Card — fits same 3D layout */
.forgot-pass-card {
  transform: rotateY(90deg);
  opacity: 0;
  z-index: 1;
  transition: transform 0.8s ease-in-out, opacity 0.6s ease-in-out;
}

/* Show forgot pass */
.card-flip-container.show-forgot .login-card {
  transform: rotateY(-90deg);
  opacity: 0;
  z-index: 1;
}

.card-flip-container.show-forgot .forgot-pass-card {
  transform: rotateY(0deg);
  opacity: 1;
  z-index: 3;
}
