/* Login Page Styles - Vault Animation Theme (Light) */

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes dialRotate {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(90deg); }
    50% { transform: translate(-50%, -50%) rotate(45deg); }
    75% { transform: translate(-50%, -50%) rotate(120deg); }
}

@keyframes vaultGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 168, 215, 0.2),
                    inset 0 0 20px rgba(0, 168, 215, 0.05);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 168, 215, 0.35),
                    inset 0 0 30px rgba(0, 168, 215, 0.1);
    }
}

@keyframes floatKey {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

@keyframes floatKey2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-15deg); }
}

@keyframes floatKey3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

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

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f0f4f8 100%);
    color: #333;
    padding: 2rem 1rem;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 168, 215, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 215, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* =====================================================
   VAULT CONTAINER & ANIMATION
   ===================================================== */

.vault-container {
    position: relative;
    width: 220px;
    height: 220px;
}

.vault {
    width: 180px;
    height: 180px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.vault-door {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e8ecef 0%, #d1d8dd 50%, #e8ecef 100%);
    border-radius: 20px;
    border: 4px solid #b8c4ce;
    position: relative;
    animation: vaultGlow 3s ease-in-out infinite;
}

/* Vault Handle */
.vault-handle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 12px;
    background: linear-gradient(180deg, #a0aab4 0%, #8a949e 100%);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.vault-handle::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 24px;
    background: linear-gradient(180deg, #a0aab4 0%, #8a949e 100%);
    border-radius: 4px;
}

/* Vault Dial */
.vault-dial {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 65px;
    background: linear-gradient(145deg, #f5f7f9 0%, #e0e5ea 100%);
    border-radius: 50%;
    border: 3px solid #00a8d7;
    box-shadow: 0 0 15px rgba(0, 168, 215, 0.3),
                inset 0 0 15px rgba(0, 168, 215, 0.05);
}

.dial-marks {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        repeating-conic-gradient(
            from 0deg,
            transparent 0deg 8deg,
            rgba(0, 168, 215, 0.6) 8deg 10deg
        );
    animation: dialRotate 8s ease-in-out infinite;
}

.dial-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #00a8d7 0%, #0088b0 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 168, 215, 0.6);
}

/* Vault Bolts */
.vault-bolts {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bolt {
    width: 16px;
    height: 8px;
    background: linear-gradient(180deg, #a0aab4 0%, #8a949e 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Vault Glow Effect */
.vault-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border-radius: 24px;
    background: transparent;
    box-shadow: 0 0 60px rgba(0, 168, 215, 0.15);
    pointer-events: none;
}

/* =====================================================
   FLOATING KEYS
   ===================================================== */

.floating-key {
    position: absolute;
    color: #00a8d7;
    font-size: 1.5rem;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(0, 168, 215, 0.5));
    z-index: 10;
}

.key-1 {
    top: 10px;
    left: 20px;
    animation: floatKey 4s ease-in-out infinite;
}

.key-2 {
    top: 30px;
    right: 10px;
    font-size: 1.2rem;
    animation: floatKey2 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.key-3 {
    bottom: 20px;
    left: 40px;
    font-size: 1rem;
    animation: floatKey3 3.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* =====================================================
   HERO CONTENT
   ===================================================== */

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #00a8d7;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: #555;
    line-height: 1.6;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.typed-text {
    color: #00a8d7;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #00a8d7 0%, #008cbf 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 168, 215, 0.3);
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, #00bce8 0%, #00a8d7 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 215, 0.4);
}

.hero-btn-secondary {
    background-color: white;
    color: #00a8d7;
    border: 2px solid #00a8d7;
}

.hero-btn-secondary:hover {
    background-color: #f0f9fc;
    transform: translateY(-2px);
}

.security-badge {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.security-badge i {
    color: #28a745;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .hero-container {
        gap: 2rem;
    }

    .vault-container {
        width: 220px;
        height: 220px;
    }

    .vault {
        width: 180px;
        height: 180px;
    }

    .vault-dial {
        width: 60px;
        height: 60px;
        left: 20px;
    }

    .dial-marks {
        width: 45px;
        height: 45px;
    }

    .dial-center {
        width: 15px;
        height: 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }

    .floating-key {
        display: none;
    }
}

@media (max-width: 480px) {
    .vault-container {
        width: 180px;
        height: 180px;
    }

    .vault {
        width: 150px;
        height: 150px;
    }

    .vault-dial {
        width: 50px;
        height: 50px;
        left: 15px;
    }

    .vault-handle {
        width: 30px;
        height: 10px;
        right: 18px;
    }

    .hero-title {
        font-size: 1.75rem;
    }
}
