/* PokeEdge Web Branding */

@font-face {
    font-family: 'Roboto Mono';
    src: url('../fonts/RobotoMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Mono';
    src: url('../fonts/RobotoMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --poke-blue: #3B4CCA;
    --poke-yellow: #FFDE00;
    --poke-red: #CC0000;
    --bg-dark: #0c181f;
    --bg-card: #12232d;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
}

body {
    background-color: var(--bg-dark);
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.intro {
    background-color: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    font-family: 'Roboto Mono', monospace !important;
}

.intro button {
    background-color: var(--poke-blue) !important;
    color: white !important;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro button:hover {
    background-color: var(--poke-yellow) !important;
    color: var(--poke-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 222, 0, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-container img {
    margin-right: 12px;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-bottom-color: var(--poke-yellow);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-right: 10px;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Login Page Styles (CSP-compliant, no inline)
   ============================================ */

.login-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

.login-page * {
    box-sizing: border-box;
}

.login-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    width: 90%;
}

.login-container h1 {
    text-align: center;
    margin: 0 0 0.5rem 0;
    color: #ffd700;
    font-size: 1.8rem;
}

.login-container .subtitle {
    text-align: center;
    color: #888;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
}

.login-container .form-group {
    margin-bottom: 1rem;
}

.login-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #aaa;
}

.login-container input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
}

.login-container input[type="password"]:focus {
    outline: none;
    border-color: #ffd700;
}

.login-container button {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border: none;
    border-radius: 6px;
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.login-container .error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.login-container .footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.8rem;
}
