:root { --accent: #378ADD; --accent-dark: #0C447C; --bg: #F4F8FD; --text-main: #1A1A2E; --card-bg: #FFFFFF; --radius: 16px; --transition: .22s ease; }
    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text-main); margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
    .auth-container { background: var(--card-bg); width: 100%; max-width: 400px; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,0.08); padding: 40px 30px; text-align: center; }
    .logo-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), #5BA3E6); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 20px; margin-bottom: 16px; box-shadow: 0 4px 15px rgba(55,138,221,.3); }
    h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: var(--accent-dark); }
    p { margin: 0 0 24px; font-size: 14px; color: #5A6072; }
    .input-group { margin-bottom: 16px; text-align: left; }
    .input-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #5A6072; }
    .input-group input { width: 100%; height: 44px; border: 1.5px solid #E4EAF2; border-radius: 8px; padding: 0 14px; font-size: 15px; outline: none; transition: var(--transition); box-sizing: border-box; }
    .btn { width: 100%; height: 46px; border: none; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #5BA3E6); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 10px; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
    .btn:disabled { opacity: 0.7; cursor: not-allowed; }
    .toggle-link { margin-top: 20px; font-size: 14px; color: #5A6072; cursor: pointer; }
    .toggle-link span { color: var(--accent); font-weight: 700; }
    .msg { padding: 10px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; font-weight: 600; display: none; }
    .msg.error { background: #FEE2E2; color: #B91C1C; }
    .msg.success { background: #D1FAE5; color: #047857; }
    .spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; margin-right: 10px; }
    @keyframes spin { to { transform: rotate(360deg); } }