/* common.css */
:root {
    --jade: #0B6B3A;
    --jadeDark: #07492A;
    --jadeSoft: #E6F2EB;
    --red: #C8102E;
    --redSoft: #FCE8EB;
    --gold: #C9A24B;
    --goldSoft: #F8F0DC;
    --ivory: #FAF8F3;
    --ink: #16231D;
    --muted: #6B7A72;
    --line: #E8E6DF;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: var(--font-sans);
}

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

body, button, input, select, textarea, optgroup {
    font-family: var(--font-sans);
}

body {
    background-color: var(--ivory);
    color: var(--ink);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.topbar-title,
.page-title,
.section-title,
.card-title,
.stat-value,
.hero-title,
.modal-title {
    font-family: var(--font-sans);
}

/* Modern Login Page Styles */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    z-index: 1;
    transform: scale(1.1);
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 248, 243, 0.85);
    /* ivory with opacity */
    z-index: 2;
}

.login-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 470px;
    padding: 48px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-container {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 100px;
    height: auto;
    drop-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-title {
    text-align: center;
    color: var(--jadeDark);
    margin-bottom: 8px;
    font-size: 1.75rem;
    font-weight: 700;
}

.login-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.login-error {
    background-color: var(--redSoft);
    color: var(--red);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: #FAFAFA;
}

.form-group input:focus {
    outline: none;
    border-color: var(--jade);
    box-shadow: 0 0 0 3px var(--jadeSoft);
    background-color: white;
}

.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #108A4B, var(--jadeDark));
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(11, 107, 58, 0.2);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(11, 107, 58, 0.3);
}

.login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(11, 107, 58, 0.2);
}