:root {
  --brand: #3b82f6;
  --bg: #f6f8fb;
  --text: #0f172a;
  --muted: #64748b;
  --card-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: 28px;
  border: 1px solid #e2e8f0;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.login-logo img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.login-title {
  font-weight: 700;
  font-size: 20px;
}

.login-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.form-label {
  font-weight: 600;
  font-size: 13px;
}

.form-control {
  border-radius: 12px;
  padding: 10px 12px;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #64748b;
  padding: 4px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.password-toggle:hover {
  color: #1d4ed8;
  background: #eff6ff;
}

.password-strength {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

.password-strength.weak {
  color: #dc2626;
}

.password-strength.medium {
  color: #f59e0b;
}

.password-strength.strong {
  color: #16a34a;
}

.password-match {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

.password-match.match {
  color: #16a34a;
}

.password-match.mismatch {
  color: #dc2626;
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 16px;
  font-size: 13px;
}

.login-actions a {
  color: var(--brand);
  text-decoration: none;
}

.login-actions a:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
}

.register-link {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
}

.register-link a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover {
  text-decoration: underline;
}

.toast-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.toast-overlay.show {
  display: flex;
}

.toast-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 28px 26px;
  min-width: 320px;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid #e2e8f0;
  position: relative;
}

.toast-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #22c55e;
  color: #16a34a;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 30px;
}

.toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.toast-close:hover {
  color: #475569;
}

.toast-title {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 6px;
}

.toast-subtitle {
  color: #64748b;
  font-size: 13px;
}
