@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;600&family=JetBrains+Mono:wght@400;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0a0a0a;
    overflow: hidden;
    position: relative;
}

/* Global xAI / Grok No-Shadow Enforcement */
*, *::before, *::after, .login-container, .form-group input:focus, .btn-login, .btn-login:hover {
    box-shadow: none !important;
}

.sf-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.95)), url('../img/story-stage.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.6);
    transform: scale(1.1);
}

.sf-light-leak {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.login-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 400px;
    z-index: 10;
    margin: 40px 0;
}

.login-header-outside {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
}

.login-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-subtitle {
    font-family: 'Geist Mono', 'JetBrains Mono', monospace;
    color: #888888;
    font-size: 0.75rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    font-weight: 400;
}

.login-container {
    background: #191919;
    border: 1px solid #212327;
    padding: 32px;
    border-radius: 8px;
    box-shadow: none;
    width: 100%;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-family: 'Geist Mono', 'JetBrains Mono', monospace;
    color: #cccccc;
    margin-bottom: 8px;
    font-size: 0.75rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    font-weight: 400;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #1a1c20;
    border: 1px solid #212327;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    transition: 0.25s;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: #212327;
    box-shadow: none;
}

.btn-login {
    width: 100%;
    padding: 12px 20px;
    background: #ffffff;
    color: #0a0a0a;
    border: 1px solid #ffffff;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    cursor: pointer;
    transition: 0.25s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

.btn-login:hover {
    transform: translateY(-1px);
    background: #e0e0e0;
    border-color: #e0e0e0;
    box-shadow: none;
}

.alert {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    background: #1a1c20;
    border: 1px solid #212327;
    color: #ffffff;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), margin 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 100px;
    overflow: hidden;
    width: 100%;
}

.alert-code {
    font-family: 'Geist Mono', 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 1.4px;
    color: #888888;
    text-transform: uppercase;
}

.alert-msg {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: #ffffff;
    text-align: left;
    line-height: 1.4;
}

/* State for fading out after 3 seconds */
.alert.fade-out {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    border-width: 0;
}

.login-footer-outside {
    text-align: center;
    margin-top: 24px;
    font-family: 'Geist Mono', 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #666666;
    text-transform: uppercase;
    width: 100%;
}

.login-footer-outside a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 400;
}
