* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  color: #333;
  overflow: hidden;
}

.forgot-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.forgot-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.forgot-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, transparent 90%, rgba(255, 255, 255, 0.1) 100%);
}

.forgot-panel {
  width: 500px;
  min-width: 500px;
  background: #f4f4f4;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.08);
}

.forgot-content {
  width: 100%;
  max-width: 360px;
  padding-top: 64px;
}

.logo-container {
  text-align: center;
  margin-bottom: 22px;
}

.logo-container img {
  max-width: 240px;
  height: auto;
}

.forgot-title {
  text-align: center;
  color: #1e3a8a;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 6px;
}

.forgot-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 18px;
  margin-bottom: 26px;
}

.feedback-message {
  display: none;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
}

.feedback-message.show {
  display: block;
}

.feedback-message.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.feedback-message.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 14px;
}

.required {
  color: #ef4444;
}

.form-group input {
  width: 100%;
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.btn-primary,
.btn-secondary {
  width: 100%;
  height: 46px;
  border-radius: 6px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, opacity 0.2s ease;
}

.btn-primary {
  margin-bottom: 12px;
  background: #1f2a9c;
  color: #ffffff;
}

.btn-primary:hover {
  background: #2635b7;
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.99);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-secondary {
  background: #1f2a9c;
  color: #08b27b;
}

.btn-secondary:hover {
  background: #2635b7;
}

.btn-primary.loading {
  position: relative;
  color: transparent;
}

.btn-primary.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .forgot-title {
    font-size: 30px;
  }

  .forgot-subtitle {
    font-size: 16px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 20px;
  }
}

@media (max-width: 1024px) {
  .forgot-image {
    display: none;
  }

  .forgot-panel {
    width: 100%;
    min-width: 100%;
  }

  .forgot-content {
    padding-top: 56px;
  }
}

@media (max-width: 480px) {
  .forgot-content {
    max-width: none;
    width: 100%;
    padding: 36px 24px 0;
  }

  .logo-container img {
    max-width: 210px;
  }

  .forgot-title {
    font-size: 26px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 18px;
  }
}