@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e2937 100%);
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 16px;
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.logo {
    display: block;
    margin: 0 auto 24px;
    max-width: 180px;
    height: auto;
}

h1 {
    text-align: center;
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
}

.tagline {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 32px;
    font-size: 15px;
}

input {
    width: 100%;
    padding: 14px 16px;
    background: #1e2937;
    border: 1px solid #334155;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #60a5fa;
}

button {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

button:hover {
    background: #2563eb;
}

.menu-button {
    width: auto;
    margin-top: 0;
}

.menu-dropdown button {
    margin-top: 0;
}

.message {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.success { background: #052e16; color: #4ade80; }
.error { background: #450a0a; color: #f87171; }

.link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.link a {
    color: #60a5fa;
    text-decoration: none;
}

.link a:hover {
    text-decoration: underline;
}

.disclaimer {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 32px;
    line-height: 1.5;
}

body.page-loading {
    overflow: hidden;
}

.page-loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle at center,
        rgba(30, 41, 59, 0.5) 0%,
        rgba(15, 23, 42, 0.94) 52%,
        rgba(2, 6, 23, 0.985) 100%
    );
    backdrop-filter: blur(10px);
    z-index: 20000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0s linear 0.55s, backdrop-filter 0.55s ease;
}

.page-loading-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(0px);
}

.page-loading-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(46vw, 260px);
    aspect-ratio: 1.35 / 1;
}

.page-loading-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.page-loading-logo {
    position: relative;
    z-index: 3;
    width: min(220px, 100%);
    height: auto;
    margin: 0;
    filter: drop-shadow(0 0 22px rgba(96, 165, 250, 0.28));
    animation: page_loading_logo_breathe 1.8s ease-in-out infinite;
}

.page-loading-pulse {
    position: absolute;
    inset: 20px 30px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, rgba(96, 165, 250, 0) 72%);
    filter: blur(14px);
    animation: page_loading_pulse 1.8s ease-in-out infinite;
}

.page-loading-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.42);
}

.page-loading-ring.page-loading-ring-outer {
    inset: 4px 0;
    animation: page_loading_ring_outer 2.8s ease-in-out infinite;
}

.page-loading-ring.page-loading-ring-inner {
    inset: 18px 28px;
    border-color: rgba(148, 163, 184, 0.26);
    animation: page_loading_ring_inner 2.2s ease-in-out infinite;
}

@keyframes page_loading_logo_breathe {
    0%, 100% { transform: scale(0.985); }
    50% { transform: scale(1.03); }
}

@keyframes page_loading_pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.94); }
    50% { opacity: 0.95; transform: scale(1.04); }
}

@keyframes page_loading_ring_outer {
    0%, 100% { opacity: 0.42; transform: scale(0.98) rotate(0deg); }
    50% { opacity: 0.88; transform: scale(1.03) rotate(180deg); }
}

@keyframes page_loading_ring_inner {
    0%, 100% { opacity: 0.28; transform: scale(1.02) rotate(0deg); }
    50% { opacity: 0.7; transform: scale(0.97) rotate(-180deg); }
}

@media (prefers-reduced-motion: reduce) {
    .page-loading-overlay {
        transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    }

    .page-loading-logo,
    .page-loading-pulse,
    .page-loading-ring {
        animation: none;
    }
}
