:root {
  --primary-color: #3b82f6;
  --secondary-color: #f1f5f9;
  --bg-color: #ffffff;
  --text-color: #1f2937;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --font: 'Segoe UI', Tahoma, Verdana, sans-serif;
}

* { box-sizing: border-box; margin:0; padding:0; }

body {
  font-family: var(--font);
  background: var(--secondary-color);
  color: var(--text-color);
}

.container {
  display: flex; height:100vh;
  justify-content: center; align-items: center;
}

.login-card {
  background: var(--bg-color);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px var(--shadow-color);
  text-align: center;
  width: 350px;
  display: flex; flex-direction: column; align-items: center;
  max-width: 90%;
}

.logo img {
  max-width: 150px;
  margin-bottom: 20px;
  width: 100%; height: auto;
}

h2 { color: var(--primary-color); margin-bottom:20px; }

.field {
  margin-bottom:20px;
  display:flex; flex-direction: row; align-items:center; width:100%;
}

.field label {
  width:100px; text-align:left; margin-right:15px;
  font-weight:500; font-size:0.95rem;
}

.field input {
  width:100%; padding:10px;
  border:1px solid #cbd5e1; border-radius: var(--radius);
  font-size:0.95rem;
}

button {
  background-color: var(--primary-color);
  color: white; width:100%;
  padding:12px; border:none; border-radius:var(--radius);
  cursor:pointer; font-weight:600; margin-top:20px;
}

button:hover { background-color:#2563eb; }

.link-btn {
  background:none; border:none;
  color: var(--primary-color);
  text-decoration: underline; cursor:pointer; padding:6px;
}

.forgot-link {
  text-align: right;
  width: 100%;
  margin-top: 8px;
}
.forgot-link a {
  color: var(--primary-color);
  font-size: 0.9rem;
  text-decoration: none;
}
.forgot-link a:hover {
  text-decoration: underline;
}

.create-link {
  text-align: center;
  width: 100%;
  margin-top: 12px;
}
.create-link .link-btn {
  padding: 6px 12px;
  font-size: 0.95rem;
}

/* Space below “Send Verification Code” on forgot-password */
#sendRegCode,
#sendPwCode {
  display: block;
  margin: 0 0 12px 0;
}

/* notification boxes */
.notif {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.notif.error {
  background: #fecaca;   /* light red */
  color: #b91c1c;        /* dark red */
}

.notif.success {
  background: #bbf7d0;   /* light green */
  color: #047857;        /* dark green */
}

/* loading spinner next to buttons */
.button-spinner {
  border: 2px solid rgba(0,0,0,0.1);
  border-top:   2px solid rgba(0,0,0,0.3);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }



/* Mobile */
@media (max-width:480px){
  .login-card { width:100%; padding:20px; margin:10px; }
  .field { flex-direction:column; align-items:flex-start; }
  .field label { width:100%; margin-right:0; margin-bottom:8px; }
  .logo img { max-width:120px; margin-bottom:20px; }
  button { padding:10px; font-size:1rem; }
}
