/* ============================================
   CLASSORB – UI CORE v1.0
   Neon: Cyan–Magenta–Violet
   Compatible with: Login, Dashboard, Forms, Tables
   ============================================ */

/* ---------- SYSTEM COLOR THEMES ---------- */

:root {
    --cyan: #00E5FF;
    --magenta: #FF3DF0;
    --violet: #B068FF;

    --bg-dark: #0d0d12;
    --box-dark: #161620;
    --box-dark-2: #1d1d29;
    --text-light: #ffffff;

    --bg-light: #f7f7fa;
    --box-light: #ffffff;
    --text-dark: #1a1a1a;

    --transition: 0.25s ease;
}

/* Automatic theme (light/dark) */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--bg-dark);
        color: var(--text-light);
    }
}
@media (prefers-color-scheme: light) {
    body {
        background: var(--bg-light);
        color: var(--text-dark);
    }
}

/* ---------- RESETS ---------- */

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Oxanium', sans-serif;
    letter-spacing: 0.5px;
}

a {
    color: var(--cyan);
    text-decoration: none;
}

/* ---------- LAYOUT ---------- */

.center-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ---------- UI COMPONENTS ---------- */

/* BOX (cards, login container, panels) */
.ui-box {
    width: 350px;
    padding: 30px;
    border-radius: 14px;
    background: var(--box-dark);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
    transition: var(--transition);
}

@media (prefers-color-scheme: light) {
    .ui-box {
        background: var(--box-light);
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
    }
}

.ui-box:hover {
    box-shadow: 0 0 35px rgba(255, 61, 240, 0.25);
}

/* ---------- FORMS ---------- */

label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border: none;
    border-radius: 6px;
    background: var(--box-dark-2);
    color: var(--text-light);
    transition: var(--transition);
}

@media (prefers-color-scheme: light) {
    input {
        background: #ececec;
        color: var(--text-dark);
    }
}

input:focus {
    outline: 2px solid var(--cyan);
    background: #222233;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    background: var(--cyan);
    color: black;
    transition: var(--transition);
}

button:hover {
    background: var(--magenta);
    color: white;
}

/* ---------- ERROR BOX ---------- */

.error {
    padding: 10px;
    background: rgba(255, 61, 240, 0.15);
    border: 1px solid var(--magenta);
    border-radius: 6px;
    color: var(--magenta);
    text-align: center;
    margin-bottom: 15px;
}

/* ---------- LOGIN TITLE ---------- */

.login-title {
    color: var(--cyan);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}
