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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #1a1a1a;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
}

.brand-logo {
  display: block;
  height: 36px;
  margin: 0 auto 1.25rem;
}

h1 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
h1 span {
  color: #2563eb;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tab {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}
.tab.active {
  background: #2563eb;
  color: #fff;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #444;
}
input[type='email'],
input[type='password'] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.15s;
}
input:focus {
  border-color: #2563eb;
}

.btn {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary {
  background: #2563eb;
  color: #fff;
}
.btn-primary:hover {
  background: #1d4ed8;
}
.btn-primary:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}

.divider {
  text-align: center;
  margin: 1rem 0;
  color: #9ca3af;
  font-size: 0.85rem;
}

.btn-google {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.btn-google:hover {
  background: #f9fafb;
}

.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}
.error.visible {
  display: block;
}

.loading {
  opacity: 0.7;
  pointer-events: none;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.75rem;
  color: #9ca3af;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d5db;
  display: inline-block;
  transition: background 0.3s;
}
.status-dot.ok { background: #22c55e; }
.status-dot.err { background: #ef4444; }
.status-label { margin-right: 0.6rem; }
