/* Shared styling for the MCP.Scientio.Com account pages, matching index.html. */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-900: #0a1628;
    --blue-700: #112952;
    --blue-600: #1a3a6e;
    --blue-500: #1e4d9b;
    --blue-400: #2563eb;
    --blue-300: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --accent: #38bdf8;
    --white: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --card-bg: #ffffff;
    --card-border: #bfdbfe;
    --shadow: 0 2px 12px 0 rgba(30,77,155,0.10);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--blue-50);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero {
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-500) 100%);
    color: var(--white);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.site-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-subtitle {
    font-size: 0.85rem;
    opacity: 0.75;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

main {
    flex: 1;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
    max-width: 480px;
    margin: 3rem auto;
}

    .card h1 {
        font-size: 1.4rem;
        color: var(--blue-600);
        margin-bottom: 0.75rem;
    }

    .card p {
        color: var(--muted);
        font-size: 0.92rem;
        margin-bottom: 1rem;
    }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-700);
    margin-bottom: 0.3rem;
}

input[type=email], input[type=password] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: inherit;
}

button {
    background: var(--blue-400);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

    button:hover {
        background: var(--blue-300);
    }

    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.msg {
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.msg.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

.msg.success {
    background: var(--blue-100);
    color: var(--blue-600);
    display: block;
}

.apikey {
    font-family: 'Consolas', 'Courier New', monospace;
    background: var(--blue-50);
    border: 1px dashed var(--blue-300);
    border-radius: 8px;
    padding: 0.75rem;
    word-break: break-all;
    color: var(--blue-700);
    margin-bottom: 1rem;
}

.links {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--muted);
}

    .links a {
        color: var(--blue-400);
        text-decoration: none;
    }

        .links a:hover {
            text-decoration: underline;
        }

footer {
    background: var(--blue-900);
    color: rgba(255,255,255,0.55);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
}

    footer a {
        color: var(--accent);
        text-decoration: none;
    }
