:root {
    --primary: #369BCA;
    --primary-hover: #2A86B2;
    --primary-light: #EBF7FC;
    --primary-dark: #1B6F93;
    --accent: #A9CF3A;
    --accent-hover: #94B82E;
    --accent-light: #F4FADF;
    --danger: #DC3545;
    --danger-hover: #C82333;
    --danger-light: #FDE8EA;
    --warning: #E8A317;
    --warning-light: #FEF6E5;
    --info: #369BCA;
    --info-light: #EBF7FC;
    --success: #28A745;
    --success-light: #E8F5E9;
    --bg: #FFFFFF;
    --bg-secondary: #F6F8FB;
    --bg-tertiary: #EDF0F5;
    --text: #2E3A4A;
    --text-secondary: #6C7A89;
    --text-muted: #9EAAB8;
    --border: #D9E3EF;
    --border-light: #E8EEF5;
    --header-height: 92px;
    --tabs-height: 36px;
    --ribbon-bar-height: 48px;
    --nav-total-height: 176px;
    --toolbar-height: 38px;
    --statusbar-height: 26px;
    --radius: 6px;
    --radius-sm: 4px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 3px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 6px 24px rgba(0,0,0,0.1);
    --font: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size: 13px;
    --font-size-sm: 11px;
    --font-size-lg: 14px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
}

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

::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-radius: var(--radius-sm); }

html, body {
    height: 100%;
    font-family: var(--font);
    font-size: var(--font-size);
    color: var(--text);
    background: var(--bg-secondary);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
h4 { font-size: 13px; font-weight: 600; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: var(--font-size-sm); }

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1B6F93 0%, #2989B8 25%, #369BCA 50%, #4AA8D4 75%, #6FC9F0 100%);
    background-size: 400% 400%;
    animation: bgShift 12s ease infinite;
    position: relative;
    overflow: hidden;
}
@keyframes bgShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(106, 200, 240, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(75, 168, 212, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(184, 230, 248, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
.login-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.login-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}
.shape-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #6FC9F0, transparent);
    top: -200px; right: -150px;
    animation: loginFloat 8s ease-in-out infinite;
}
.shape-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #4AA8D4, transparent);
    bottom: -150px; left: -120px;
    animation: loginFloat 10s ease-in-out infinite reverse;
}
.shape-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #B8E6F8, transparent);
    top: 40%; left: 60%;
    animation: loginFloat 12s ease-in-out infinite;
}
.shape-4 {
    width: 180px; height: 180px;
    background: radial-gradient(circle, #6FC9F0, transparent);
    top: 15%; left: 10%;
    opacity: 0.06;
    animation: loginFloat 14s ease-in-out infinite 2s;
}
.shape-5 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, #4AA8D4, transparent);
    bottom: 20%; right: 5%;
    opacity: 0.07;
    animation: loginFloat 9s ease-in-out infinite 1s;
}
@keyframes loginFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 16px;
    position: relative;
    z-index: 1;
}
.login-box {
    background: rgba(255,255,255,0.97);
    border-radius: 16px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.28);
    padding: 40px 36px 32px;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}
.login-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B6F93, #369BCA, #6FC9F0, #369BCA, #1B6F93);
    background-size: 200% 100%;
    animation: gradientSweep 3s ease infinite;
}
@keyframes gradientSweep {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.login-header { text-align: center; margin-bottom: 28px; }
.login-logo {
    width: 320px;
    height: auto;
    object-fit: contain;
    margin-bottom: 28px;
}
.login-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}
.login-header p {
    color: #6b7a8f;
    font-size: 13px;
    font-weight: 400;
}
.login-footer {
    text-align: center;
    margin-top: 28px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    letter-spacing: 0.3px;
}
.login-footer p {
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.6), rgba(255,255,255,0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.main-container {
    padding-bottom: var(--statusbar-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-area { flex: 1; padding: var(--spacing-md) var(--spacing-lg); }

/* Page title */
.page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-title i {
    color: var(--primary);
    font-size: 20px;
}
