@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-base: #060b13;
    --surface: rgba(13, 20, 36, 0.65);
    --surface-border: rgba(59, 130, 246, 0.2);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --danger: #ef4444;
    --glass-blur: blur(20px);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    background-image: url('/images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Navbar */
.navbar {
    padding: 1.25rem 3rem;
    background: rgba(6, 11, 19, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .logo span {
    color: var(--accent);
}

.navbar .logo-icon {
    width: 28px;
    height: 28px;
    fill: var(--accent);
}

/* Containers */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    flex-direction: column;
}

/* Glassmorphism Card */
.card {
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

h1 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 300;
}

.notice {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.4);
    border-left: 3px solid var(--accent);
    padding: 0.75rem;
    margin-bottom: 2rem;
    border-radius: 4px 8px 8px 4px;
}

.error-message {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
    display: none;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 400;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    background: rgba(6, 11, 19, 0.6);
    border: 1px solid var(--surface-border);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
    background: rgba(6, 11, 19, 0.8);
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 2rem;
}

.stat-card {
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.4);
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.stat-card .value {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -1px;
}

.stat-card .trend {
    font-size: 0.8rem;
    color: #10b981;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
