* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1a4e 50%, #24243e 100%);
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.login-container { width: 100%; max-width: 400px; padding: 20px; }
.login-card {
  background: rgba(255,255,255,0.95); border-radius: 16px; padding: 36px 32px 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.login-card h1 { font-size: 24px; color: #1a73e8; text-align: center; margin-bottom: 4px; }
.login-subtitle { text-align: center; color: #888; font-size: 14px; margin-bottom: 16px; }
.tab-bar { display: flex; margin-bottom: 20px; border-radius: 8px; overflow: hidden; border: 1px solid #ddd; }
.tab-btn { flex: 1; padding: 10px; border: none; background: #f8f9fa; cursor: pointer; font-size: 14px; color: #666; transition: all 0.2s; }
.tab-btn:not(:last-child) { border-right: 1px solid #ddd; }
.tab-btn.active { background: #1a73e8; color: #fff; font-weight: 600; }
.tab-btn:hover:not(.active) { background: #e8f0fe; }
.field { margin-bottom: 14px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 15px; outline: none; transition: border-color 0.2s;
}
.field input:focus { border-color: #1a73e8; }
.password-field { display: flex; align-items: center; }
.password-field input { flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: none; }
.password-toggle {
  padding: 12px 14px; border: 1px solid #ddd; border-left: none; border-radius: 0 8px 8px 0;
  background: #f8f9fa; color: #666; font-size: 13px; cursor: pointer; user-select: none; white-space: nowrap; transition: all 0.2s;
}
.password-toggle:hover { background: #e8f0fe; color: #1a73e8; }
.password-field input:focus + .password-toggle { border-color: #1a73e8; }
.remember-row { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #666; margin-bottom: 12px; cursor: pointer; }
.remember-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.btn-login {
  width: 100%; padding: 12px; background: #1a73e8; color: #fff; border: none;
  border-radius: 8px; font-size: 16px; cursor: pointer; font-weight: 600;
  transition: background 0.2s;
}
.btn-login:hover { background: #1557b0; }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-register { background: #07c160; }
.btn-register:hover { background: #06ad56; }
.error-msg { color: #d93025; font-size: 13px; text-align: center; margin-bottom: 10px; min-height: 18px; }
.divider { text-align: center; margin: 20px 0 16px; position: relative; }
.divider span {
  background: #fff; padding: 0 12px; color: #999; font-size: 13px; position: relative; z-index: 1;
}
.divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: #eee;
}
.login-footer { text-align: center; margin-top: 16px; font-size: 13px; }
.login-footer a { color: #1a73e8; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }
