/* ==========================================
   STYLE.CSS
   ========================================== */

:root {
    --phi: 1.618;
    --primary-navy: #1D3557;
    --primary-red: #E63946;
    --primary-black: #1A1A1A;
    --bg-light: #F8F9FA;
    --text-dark: #2D3436;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Premium Background Blobs */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-navy);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--primary-red);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-black);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

/* Layout based on Golden Ratio */
.login-container {
    width: 100%;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
    animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    overflow: hidden;
    /* Optimization: Isolate rendering */
    contain: paint;
    will-change: transform, opacity;
}

.login-container.exit-active {
    pointer-events: none;
}

.mouse-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.4),
            transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.login-container:hover .mouse-glow {
    opacity: 1;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(2rem * var(--phi));
    /* Golden Ratio spacing */
    width: 100%;
}

.main-logo {
    width: 500px;
    max-width: 100%;
    height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: logoReveal 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards;
}

.main-logo:hover {
    transform: scale(1.05);
}

.button-group {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    max-width: 200px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* Shine Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
}

.btn:hover::before {
    animation: shine 0.75s infinite;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn:active {
    transform: translateY(0);
}

.btn-navy {
    background-color: var(--primary-navy);
    color: white;
}

.btn-navy:hover {
    background-color: #2b4b7a;
}

.btn-red {
    background-color: var(--primary-red);
    color: white;
}

.btn-red:hover {
    background-color: #ff4d5a;
}

.btn-black {
    background-color: var(--primary-black);
    color: white;
}

.btn-black:hover {
    background-color: #333333;
}

.footer-text {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    color: #636e72;
    font-weight: 400;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .login-container {
        aspect-ratio: auto;
        min-height: 400px;
        padding: 30px;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: none;
    }

    /* Hide previews on mobile to avoid clutter */
    .preview-popup {
        display: none !important;
    }
}

/* Hover Preview Styles */
.btn-wrapper {
    position: relative;
    flex: 1;
    max-width: 200px;
    display: flex;
    justify-content: center;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.btn-wrapper:nth-child(1) {
    animation-delay: 0.8s;
}

.btn-wrapper:nth-child(2) {
    animation-delay: 1.0s;
}

.btn-wrapper:nth-child(3) {
    animation-delay: 1.2s;
}

.btn-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    width: max-content;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 11px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 90;
}

.btn-wrapper:hover .btn-tooltip {
    opacity: 1;
    transform: translateY(0);
}



/* Dashboard Mockup Styles */