/* Styles for Noorplay website */

/* Base transitions */
* {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.cloud-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Device icons hover effects */
.device-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.device-icon:hover {
    transform: translateY(-5px) !important;
    filter: brightness(1.2);
}

/* Background patterns */
.dots-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(#6366f1 1px, transparent 1px),
                      radial-gradient(#818cf8 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

/* Form focus effects */
#phoneInputContainer:focus-within,
#pinInputContainer:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Button hover effects */
button[type="submit"] {
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(99, 102, 241, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .device-icons-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .dots-pattern {
        background-size: 15px 15px;
    }
}

/* Print styles */
@media print {
    .cloud-animation,
    .device-icons-container,
    .dots-pattern {
        display: none;
    }
}

/* Custom background and theme colors - Brand-focused ultra-light blue */
body {
    background: #F3F8FF !important; /* Ultra-light brand blue */
    color: #111;
}

/* Dark hero strip for logo glow effect */
.hero {
    background: #0F172A; /* Deep charcoal */
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure logo container is centered */
.hero .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

/* Logo glow effect on dark background */
.hero .logo-container img {
    filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.3)) drop-shadow(0 0 40px rgba(6, 182, 212, 0.2));
}

/* High-conversion CTA button with brand gradient */
.cta-primary {
    background: linear-gradient(90deg, #14C8FF 0%, #06B0F2 100%) !important;
    color: #0F172A !important;
    border-radius: 6px;
    padding: 0.9rem 2rem;
    font-weight: 600;
    border: none;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background: linear-gradient(90deg, #0BB8EF 0%, #0599D9 100%) !important;
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}

.cta-primary:active {
    transform: translateY(0);
}

/* Update form container with brand blue shadow */
.form-container {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(20, 200, 255, 0.08);
    margin: 2rem 0;
}

/* Update input styling for light theme */
#phoneInputContainer,
#pinInputContainer {
    border-color: #E5E7EB;
    background: white;
}

#phoneInputContainer:focus-within,
#pinInputContainer:focus-within {
    border-color: #28D8FF;
    box-shadow: 0 0 0 3px rgba(40, 216, 255, 0.1);
}

/* Update text colors for light background */
.download-text {
    color: #374151;
    font-weight: 500;
}

/* Device icons styling for light background */
.device-icon svg {
    color: #9CA3AF;
}

/* Footer text for light background */
.footer-text {
    color: #6B7280;
}

/* Dots pattern for light background */
.dots-pattern {
    background-image: radial-gradient(#E5E7EB 1px, transparent 1px),
                      radial-gradient(#F3F4F6 1px, transparent 1px);
    opacity: 0.3;
}

/* Autofilled PIN visual feedback */
.pin-input.autofilled {
    background-color: #F0FDF4 !important; /* Light green background */
    border-color: #22C55E !important; /* Green border */
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important; /* Green glow */
    animation: autofill-pulse 1s ease-in-out;
}

@keyframes autofill-pulse {
    0% {
        background-color: #DCFCE7;
        transform: scale(1);
    }
    50% {
        background-color: #BBF7D0;
        transform: scale(1.02);
    }
    100% {
        background-color: #F0FDF4;
        transform: scale(1);
    }
}