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

:root {
  --green:      #25D366;
  --green-dark: #128C7E;
  --green-light:#DCF8C6;
  --bg:         #f0f2f5;
  --white:      #ffffff;
  --text:       #111b21;
  --muted:      #667781;
  --border:     #e9edef;
  --red:        #dc3545;
  --blue:       #0d6efd;
  --radius:     12px;
  --shadow:     0 2px 12px rgba(0,0,0,.10);
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
  padding: 24px 16px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px 32px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
}

input[type=email],
input[type=password],
input[type=text] {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
  font-family: var(--font);
}

input:focus { border-color: var(--green); }

.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s;
  font-family: var(--font);
}
.btn-primary:hover { background: var(--green-dark); }

.auth-error {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: var(--red);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.auth-info {
  background: #f0fff4;
  border: 1px solid #b7ebc8;
  color: #1a7f3c;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.auth-switch a { color: var(--green-dark); text-decoration: none; font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px 24px; }
}
