:root {
    /* Color Palette - Premium Dark/Glass Theme */
    --primary: #3b82f6;
    /* Vivid Blue */
    --primary-hover: #2563eb;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --surface: rgba(30, 41, 59, 0.7);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --error: #ef4444;
    --success: #22c55e;

    /* Spacing & Radius */
    --radius-lg: 16px;
    --radius-md: 8px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 100%;
    max-width: 480px;
    /* Mobile focused */
    padding: var(--spacing-sm);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Auth Box - Glassmorphism */
.auth-box {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hidden {
    display: none;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* Forms */
.input-group {
    margin-bottom: var(--spacing-sm);
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: var(--spacing-sm);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

.auth-link {
    margin-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

.feedback-msg {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

.feedback-msg.error {
    color: var(--error);
}

.feedback-msg.success {
    color: var(--success);
}

/* Dashboard Styles */
.status-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.status-indicator {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-indicator.out {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.status-indicator.in {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.punch-btn-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.punch-btn-large:active {
    transform: scale(0.95);
}

.btn-in {
    background: var(--success);
    color: #000;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

.btn-out {
    background: var(--error);
    color: #fff;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.btn-in:hover {
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.6);
}

.btn-out:hover {
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.6);
}

.location-info {
    margin-top: var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.9rem;
}