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

:root {
  --green:   #16a34a;
  --green-d: #15803d;
  --text:    #0f172a;
  --text2:   #64748b;
  --border:  #e2e8f0;
  --bg:      #f8fafc;
  --error:   #dc2626;
  --radius:  8px;
}

html, body {
  height: 100%;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 28px;
}
.auth-logo-mark {
  width: 32px; height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.auth-logo-mark svg { width: 18px; height: 18px; fill: #fff; }
.auth-logo-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
}

.auth-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.auth-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.form-control,
.auth-card form input[type="text"],
.auth-card form input[type="email"],
.auth-card form input[type="password"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  display: block;
  box-sizing: border-box;
}
.form-control:focus,
.auth-card form input[type="text"]:focus,
.auth-card form input[type="email"]:focus,
.auth-card form input[type="password"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.form-control.is-invalid { border-color: var(--error); }

.auth-card form ul.errorlist { list-style: none; margin-top: 4px; padding: 0; }
.auth-card form ul.errorlist li { font-size: 12px; color: var(--error); }
.invalid-feedback { font-size: 12px; color: var(--error); margin-top: 4px; }

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.field-link {
  font-size: 12.5px;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}
.field-link:hover { text-decoration: underline; }

.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text2);
  cursor: pointer;
  margin-bottom: 18px;
}
.check-row input { accent-color: var(--green); }

.btn-primary {
  width: 100%;
  padding: 10px 18px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background .15s;
  text-decoration: none;
  margin-top: 4px;
}
.btn-primary:hover { background: var(--green-d); }

.btn-google {
  width: 100%;
  padding: 9px 14px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  margin-bottom: 16px;
}
.btn-google:hover { background: #f8fafc; border-color: #cbd5e1; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 16px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.alert {
  padding: 10px 13px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert-danger  { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-info    { background: #f0f9ff; border-color: #bae6fd; color: #0369a1; }

.info-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #14532d;
  margin-bottom: 20px;
}
.info-box-title { font-weight: 700; margin-bottom: 3px; }

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text2);
}
.auth-footer a { color: var(--green); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-page-footer {
  margin-top: 24px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; border-radius: 8px; }
  .name-grid { grid-template-columns: 1fr; }
}
