:root {
  --primary: #b08b60;
  --primary-dark: #8e6f4d;
  --bg: #f5f1eb;
  --card: #ffffff;
  --text: #2f2a26;
  --muted: #6f6a66;
  --border: #e7ddd2;
  --input-bg: #fcfaf8;
  --danger-bg: #fdecec;
  --danger-text: #8f2d2d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background:
    linear-gradient(rgba(245, 241, 235, 0.88), rgba(245, 241, 235, 0.92)),
    url('../img/hero-bg.jpg') center/cover no-repeat fixed;
  min-height: 100vh;
  color: var(--text);
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  padding: 40px 34px 30px;
}

.brand-top {
  text-align: center;
  margin-bottom: 22px;
}

.brand-logo {
  max-width: 230px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.login-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.form-label {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-align: left;
}

.custom-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background-color: var(--input-bg);
  padding: 14px 16px;
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--text);
  transition: all 0.25s ease;
  box-shadow: none;
}

.custom-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(176, 139, 96, 0.15);
  background-color: #fff;
  outline: none;
}

.alert-custom {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid #f5c7c7;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 18px;
  text-align: center;
  font-weight: 700;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  margin-bottom: 16px;
}

.btn-custom {
  flex: 1;
  min-width: 150px;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  transition: all 0.25s ease;
}

.btn-outline-custom {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline-custom:hover {
  transform: translateY(-2px);
  background: #f8f4ef;
}

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(176, 139, 96, 0.25);
}

.extra-links {
  text-align: center;
  margin-top: 12px;
}

.extra-links a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.extra-links a:hover {
  text-decoration: underline;
}

.register-text {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 600;
}

.powered-by {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.powered-by img {
  height: 26px;
  margin-left: 8px;
  vertical-align: middle;
  object-fit: contain;
}

@media (max-width: 576px) {
  .login-card {
    padding: 30px 20px 24px;
    border-radius: 22px;
  }

  .login-title {
    font-size: 1.7rem;
  }

  .actions {
    flex-direction: column;
  }

  .btn-custom {
    width: 100%;
  }
}

.email-box {
  background: #f8f4ef;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text);
  line-height: 1.5;
}

.email-box span {
  color: var(--primary-dark);
  font-weight: 800;
  word-break: break-word;
}

.code-input {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 8px;
  font-weight: 800;
}

.alert-success-custom {
  background: #e9f7ef;
  color: #1f6b3a;
  border: 1px solid #cdebd8;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 18px;
  text-align: center;
  font-weight: 700;
}

.inline-form {
  display: inline;
}

.link-button {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.time-info {
  text-align: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.requirements-box {
  background: #f8f4ef;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  text-align: left;
  color: var(--text);
  font-size: 0.95rem;
}

.requirements-box strong {
  display: block;
  margin-bottom: 8px;
}

.requirements-box ul {
  margin: 0;
  padding-left: 18px;
}

.requirements-box li {
  margin-bottom: 6px;
}

.password-wrap {
  position: relative;
  margin-bottom: 18px;
}

.password-input {
  padding-right: 52px;
  margin-bottom: 0;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
}

.password-toggle:hover {
  color: var(--primary-dark);
}

.password-toggle.active {
  color: var(--primary-dark);
}
.success-card {
  text-align: center;
}

.success-icon-custom {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7cc133, #4e9b1f);
  box-shadow: 0 16px 30px rgba(124, 193, 51, 0.28);
  animation: successPop 0.45s ease-out;
}

@keyframes successPop {
  0% {
    transform: scale(0.65);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title-custom {
  color: #2c7a3f;
}

.success-subtitle-custom strong {
  color: var(--primary-dark);
}

.success-box {
  background: #e9f7ef;
  color: #1f6b3a;
  border: 1px solid #cdebd8;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  line-height: 1.6;
  font-weight: 700;
}

.tips-box {
  background: #eef5ff;
  border: 1px solid #d6e4ff;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 22px;
  text-align: left;
  color: var(--text);
}

.tips-box strong {
  display: block;
  margin-bottom: 8px;
}

.tips-box ul {
  margin: 0;
  padding-left: 18px;
}

.tips-box li {
  margin-bottom: 6px;
}

.single-action {
  justify-content: center;
}

.single-action .btn-custom {
  max-width: 260px;
}