body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: 360px;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

h1 {
  margin: 0;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: bold;
}

input[type="email"],
input[type="password"],
input[type="text"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}

input:focus, select:focus {
  border-color: #007bff;
}

.password-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.toggle-btn {
  padding: 10px 12px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.toggle-btn:hover {
  background: #f0f0f0;
}

.options {
  margin-top: 10px;
}

.remember {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.btn {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: none;
  background: #007bff;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

.btn:hover {
  background: #0056b3;
}

.error {
  color: red;
  font-size: 12px;
  min-height: 14px;
  display: block;
  margin-top: 4px;
}

.result {
  text-align: center;
  margin-top: 12px;
  font-weight: bold;
  min-height: 18px;
}

.link-line {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: #555;
}

.link-line a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.link-line a:hover {
  text-decoration: underline;
}

.loading {
  display: block;
  text-align: center;
  margin-top: 8px;
  color: #555;
  min-height: 16px;
  font-size: 13px;
}

/* Password strength */
.strength-wrap {
  margin-top: 8px;
}

.strength-bar {
  width: 100%;
  height: 8px;
  background: #e6e6e6;
  border-radius: 999px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  background: #999;
  transition: width 0.2s ease;
}

.strength-text {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #444;
  min-height: 14px;
}

.lock {
  text-align: center;
  margin-top: 8px;
  color: #b10000;
  font-size: 13px;
  min-height: 16px;
}

/* Dashboard profile mini */
.profile-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.mini-bio {
  margin: 6px 0 0 0;
  color: #555;
  font-size: 13px;
}

.danger {
  background: #d9534f;
}

.danger:hover {
  background: #b52b27;
}
