/* VTUCrack - Modern Educational UI Design System */
:root {
    --primary-auth: #6366f1;
    --primary-hover: #4f46e5;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --card-light: #ffffff;
    --card-dark: #1e293b;
    --border-light: #e2e8f0;
    --border-dark: #334155;
    --text-light: #1e293b;
    --text-dark: #f8fafc;
    --text-muted: #64748b;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-heavy: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body.auth-page {
    font-family: 'Inter', -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s ease;
}

/* Theme Handling */
body.light-theme {
    background-color: var(--bg-light);
    color: var(--text-light);
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

/* The Card */
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-heavy);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme .auth-card {
    background: var(--card-light);
    border: 1px solid var(--border-light);
}

.dark-theme .auth-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
}

/* Inputs */
.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.auth-input,
.auth-select {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.light-theme .auth-input,
.light-theme .auth-select {
    background: #f1f5f9;
    color: var(--text-light);
    border-color: #cbd5e1;
}

.dark-theme .auth-input,
.dark-theme .auth-select {
    background: #0f172a;
    color: var(--text-dark);
    border-color: #334155;
}

.auth-input:focus {
    border-color: var(--primary-auth);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Buttons */
.btn-main {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--primary-auth);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-main:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-main:active {
    transform: translateY(0);
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: 1.5px solid transparent;
}

.light-theme .btn-secondary {
    background: white;
    border-color: var(--border-light);
    color: var(--text-light);
}

.dark-theme .btn-secondary {
    background: #1e293b;
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.02);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.dark-theme .divider::before,
.dark-theme .divider::after {
    border-color: #334155;
}

.divider:not(:empty)::before {
    margin-right: 1.5em;
}

.divider:not(:empty)::after {
    margin-left: 1.5em;
}

/* Dashboard Sidebar */
.dash-sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    padding: 32px;
    border-right: 1px solid var(--border-light);
}

.dark-theme .dash-sidebar {
    border-color: #334155;
    background: #0f172a;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-auth);
}

.nav-link i {
    font-size: 1.1rem;
}