:root {
    --primary: #69b38a; /* Clean Green from EasyNumbers palette */
    --primary-hover: #559e76;
    --background: #0b0f19;
    --card-bg: #151c2e;
    --text: #f8fafc;
    --text-muted: #64748b;
    --error: #ef4444;
    --border: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Subtle background glows */
body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(105, 179, 138, 0.1) 0%, transparent 70%);
    top: 20%;
    left: 20%;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.1) 0%, transparent 70%);
    bottom: 20%;
    right: 20%;
    z-index: 0;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 380px;
    padding: 20px;
    z-index: 1;
}

/* Clean Card */
.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.logo-area {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.logo {
    max-width: 100px;
    height: auto;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text);
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

/* Form */
.input-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input {
    width: 100%;
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(105, 179, 138, 0.2);
}

input::placeholder {
    color: #475569;
}

button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: #0b0f19;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(11, 15, 25, 0.3);
    border-radius: 50%;
    border-top-color: #0b0f19;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

button.loading .btn-text {
    visibility: hidden;
}

button.loading .spinner {
    display: block;
}

.error-message {
    color: var(--error);
    font-size: 13px;
    text-align: center;
    margin-top: 16px;
    min-height: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.visible {
    opacity: 1;
}

/* Dashboard Styles */
.dashboard-body {
    overflow: hidden;
}

.dashboard-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Floating Logout Button (Discreet) */
.floating-logout-btn {
    width: auto;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 100;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.floating-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.iframe-container.full-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f172a;
}

.iframe-container.full-screen iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
