:root {
    --primary: #0a8f3c;
    --primary-dark: #067a31;
    --primary-light: #e8f5ec;
    --accent: #f7b731;
    --bg: #f4f6f9;
    --card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --error: #ef4444;
    --success: #10b981;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    overflow-x: hidden;
}

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 48px 20px 32px;
    background: linear-gradient(180deg, #0a8f3c 0%, #067a31 35%, var(--bg) 35%);
}

.auth-header { text-align: center; margin-bottom: 28px; }

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    text-decoration: none;
}
.logo-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: #fff;
    border: 2px solid rgba(255,255,255,0.25);
}
.auth-logo h1 { color: #fff; font-size: 24px; font-weight: 700; }
.auth-logo h1 span { color: var(--accent); }
.auth-subtitle { color: rgba(255,255,255,0.8); font-size: 13px; margin-top: 4px; }

.auth-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-lg);
}
.auth-card h2 { font-size: 18px; margin-bottom: 18px; }

.alert {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: var(--radius-xs);
    font-size: 13px; margin-bottom: 14px;
}
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }

.input-wrapper {
    display: flex; align-items: center;
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: var(--radius-xs); padding: 0 14px;
    transition: all 0.2s ease;
}
.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,143,60,0.1);
    background: #fff;
}
.input-wrapper svg { color: var(--text-light); flex-shrink: 0; }
.input-wrapper input {
    flex: 1; border: none; background: transparent;
    padding: 13px 12px; font-size: 15px; color: var(--text);
    outline: none; font-family: inherit; width: 100%;
}
.input-wrapper input::placeholder { color: var(--text-light); }

.toggle-password {
    background: none; border: none; color: var(--text-light);
    cursor: pointer; padding: 4px; display: flex;
}

.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 13px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.checkbox-label input { accent-color: var(--primary); }
.forgot-link { color: var(--primary); text-decoration: none; font-weight: 500; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; border: none; border-radius: var(--radius-xs);
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all 0.2s ease; font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-full { width: 100%; }

.auth-divider { text-align: center; margin: 18px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { background: var(--card); padding: 0 14px; color: var(--text-light); font-size: 13px; position: relative; }
.auth-switch { text-align: center; font-size: 14px; color: var(--text-secondary); }
.auth-switch a { color: var(--primary); font-weight: 600; text-decoration: none; }
