* { margin: 0; padding: 0; box-sizing: border-box; }

.login-brand-top { position: absolute; top: 20px; left: 24px; display: flex; align-items: center; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: 24px;
}

.auth-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

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

.auth-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 14px;
  color: #86868b;
  margin-top: 4px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  background: #f5f5f7;
  border-radius: 10px;
  padding: 3px;
}

.auth-tab {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: #86868b;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  font-size: 15px;
  color: #1d1d1f;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
  background: #fff;
}

.form-error {
  color: #ff3b30;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 20px;
}
.form-error.success {
  color: #34c759;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #0077ed;
}

.btn-primary:active {
  background: #006edb;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
}

.auth-footer a {
  color: #0071e3;
  font-size: 13px;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ====== Mobile ====== */
@media (max-width: 767px) {
  .login-brand-top { position: static; padding: 16px 16px 0; justify-content: center; }
  .auth-container { padding: 16px; max-width: 100%; }
  .auth-card { padding: 28px 20px; border-radius: 14px; }
  .auth-header h1 { font-size: 22px; }
  .auth-subtitle { font-size: 13px; }
  .form-group input { padding: 12px 14px; font-size: 16px; }
  .btn-primary { padding: 14px; font-size: 16px; }
}
