/* frontend/css/login.css */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.login-container { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); width: 100%; max-width: 420px; }
.logo { text-align: center; margin-bottom: 30px; }
.logo h1 { color: #333; font-size: 28px; margin-bottom: 8px; }
.logo .subtitle { color: #666; font-size: 14px; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: #333; font-size: 14px; font-weight: 500; }
input[type="email"], input[type="password"], input[type="text"] { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; transition: border-color 0.2s; }
input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.1); }
.btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 6px; font-size: 16px; font-weight: 500; cursor: pointer; transition: box-shadow 0.2s; }
.btn:hover { box-shadow: 0 4px 12px rgba(102,126,234,0.4); }
.btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; }
.toggle-link { text-align: center; margin-top: 15px; font-size: 14px; }
.toggle-link a { color: #667eea; text-decoration: none; cursor: pointer; }
.toggle-link a:hover { text-decoration: underline; }
.error { color: #dc3545; font-size: 14px; margin-top: 10px; text-align: center; padding: 10px; background: #f8d7da; border-radius: 4px; display: none; }
.error.show { display: block; }
.success { color: #155724; font-size: 14px; margin-top: 10px; text-align: center; padding: 10px; background: #d4edda; border-radius: 4px; }
.hidden { display: none; }
.remember { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.remember input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; margin: 0; }
.remember label { cursor: pointer; line-height: 1; user-select: none; margin: 0; color: #555; font-weight: normal; }
.code-group { display: flex; gap: 10px; }
.code-group input { flex: 1; }
.code-group button { padding: 12px 20px; background: #28a745; color: white; border: none; border-radius: 6px; cursor: pointer; white-space: nowrap; font-size: 14px; transition: background 0.2s; }
.code-group button:hover { background: #218838; }
.code-group button:disabled { background: #ccc; cursor: not-allowed; }
.divider { text-align: center; margin: 20px 0; color: #999; font-size: 13px; }
.divider::before, .divider::after { content: ""; display: inline-block; width: 80px; height: 1px; background: #ddd; vertical-align: middle; margin: 0 10px; }
.register-link { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; font-size: 14px; }
.register-link a { color: #667eea; text-decoration: none; }
.register-link a:hover { text-decoration: underline; }
@media (max-width: 480px) { .login-container { margin: 10px; padding: 30px 20px; } }
