@font-face {
  font-family: "Poppins";
  src: url("../../Poppins-Regular.ttf") format("truetype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #12181b;
  color: #333;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

/* Card */
.form-card {
  background: #fff;
  border-radius: 10px;
  padding: 36px 40px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.form-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-card-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
}

.form-card-header p {
  margin-top: 6px;
  font-size: 14px;
  color: #6c7983;
}

/* Alert banner */
.form-alert {
  display: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  text-align: center;
}

.form-alert.error {
  display: block;
  background: #ffe0e6;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.form-alert.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Fields */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #454e56;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: #1a1a2e;
  background: #fff;
}

.field input:focus {
  border-color: #fa8142;
  box-shadow: 0 0 0 3px rgba(250, 129, 66, 0.18);
}

.field input.invalid {
  border-color: #e53e3e;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-row input {
  flex: 1;
}

/* Show/Hide password toggle */
.toggle-password {
  flex-shrink: 0;
  height: 46px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #6c7983;
  background: #f3f4f6;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.toggle-password:hover {
  background: #e5e7eb;
  color: #454e56;
}

/* Field-level error */
.field-error {
  display: block;
  min-height: 18px;
  font-size: 12px;
  color: #e53e3e;
  margin-top: 5px;
  font-weight: 500;
}

/* Submit button */
.btn-submit {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #fa8142;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  letter-spacing: 0.3px;
}

.btn-submit:hover {
  background: #f96a1f;
}

.btn-submit.btn-outline {
  background: transparent;
  color: #fa8142;
  border: 2px solid #fa8142;
  margin-top: 24px;
}

.btn-submit.btn-outline:hover {
  background: #fa8142;
  color: #fff;
}

/* Switch link */
.form-switch {
  text-align: center;
  font-size: 13px;
  color: #6c7983;
  margin-top: 20px;
}

.form-switch a {
  color: #fa8142;
  font-weight: 600;
  text-decoration: none;
}

.form-switch a:hover {
  text-decoration: underline;
}

/* Dashboard */
.dashboard {
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #09c372;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.dashboard h2 {
  font-size: 22px;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.welcome-email {
  font-size: 14px;
  color: #6c7983;
}

.welcome-email strong {
  color: #454e56;
}

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