:root { --bg: #0f172a; --surface: #1e293b; --accent: #818cf8; --accent-gradient: linear-gradient(135deg, #818cf8 0%, #6366f1 100%); --text: #f8fafc; --border: #334155; --hover: rgba(129, 140, 248, 0.1); --radius: 12px; --shadow: 0 25px 50px -12px rgba(0,0,0,0.25); --error: #ef4444; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', system-ui, -apple-system, sans-serif; } body { background: var(--bg); color: var(--text); min-height: 100vh; display: grid; place-items: center; line-height: 1.6; } .auth-section { width: 100%; max-width: 440px; margin: 1rem; padding: 3rem 2.5rem; background: var(--surface); border-radius: calc(var(--radius) * 2); border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; overflow: hidden; } .form-header { text-align: center; margin-bottom: 2.5rem; position: relative; } .form-header h2 { font-size: 2rem; margin-bottom: 0.75rem; letter-spacing: -0.025em; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .form-header p { color: rgba(248, 250, 252, 0.8); font-size: 0.95rem; max-width: 300px; margin: 0 auto; } .input-container { position: relative; margin-bottom: 1.75rem; } .input-container input { width: 100%; padding: 1rem 1rem 1rem 3rem; background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .input-container input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.15); } .input-container label { position: absolute; left: 3rem; top: 50%; transform: translateY(-50%); color: rgba(248, 250, 252, 0.6); pointer-events: none; transition: all 0.3s ease; } .input-container input:focus ~ label, .input-container input:not(:placeholder-shown) ~ label { top: -0.6rem; left: 1rem; font-size: 0.85rem; color: var(--accent); background: var(--surface); padding: 0 0.5rem; } .input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: rgba(248, 250, 252, 0.6); transition: color 0.3s ease; } .input-container input:focus ~ .input-icon { color: var(--accent); } .auth-button { width: 100%; padding: 1.125rem; background: var(--accent-gradient); color: var(--text); border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; } .auth-button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.4); } .form-footer { margin-top: 2rem; text-align: center; font-size: 0.95rem; color: rgba(248, 250, 252, 0.8); } .form-link { color: var(--accent); font-weight: 500; text-decoration: none; position: relative; } .form-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: currentColor; transition: width 0.3s ease; } .form-link:hover::after { width: 100%; } .auth-form { opacity: 1; transform: translateY(0); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); width: 100%; } .auth-form.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; position: absolute; top: 0; left: 0; padding: 3rem 2.5rem; } .error-message { color: var(--error); background: rgba(239, 68, 68, 0.1); padding: 0.75rem 1rem; border-radius: var(--radius); border: 1px solid var(--error); margin-bottom: 1.5rem; text-align: center; font-size: 0.9rem; } @media (max-width: 480px) { .auth-section { padding: 2rem 1.5rem; } .input-container input { padding-left: 2.75rem; } }