/* Forgot Username Form Styles - Matches Password Reset Design */

.forgot-username-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.forgot-username-card {
  background: var(--color-white);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-lg, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
  padding: 0;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  display: flex;
  min-height: 600px;
  position: relative;
}

/* Left Side - Branding */
.forgot-username-left {
  flex: 1;
  background: linear-gradient(
    135deg,
    var(--iba-color, #3b82f6) 0%,
    var(--color-accent, #1e40af) 100%
  );
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-white, #ffffff);
  text-align: center;
  position: relative;
}
.forgot-username-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.brand-section {
  position: relative;
  z-index: 1;
}

.company-logo {
  margin-bottom: 30px;
}

.logo-img {
  background: white;
  padding: 1rem;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.brand-section h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.brand-section > p {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.forgot-username-left h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.forgot-username-left > p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.security-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.security-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 1rem;
  animation: fadeInUp 0.6s ease-out calc(0.3s + var(--delay, 0s)) both;
}

.security-features li:nth-child(1) {
  --delay: 0s;
}
.security-features li:nth-child(2) {
  --delay: 0.1s;
}
.security-features li:nth-child(3) {
  --delay: 0.2s;
}

.security-features li i {
  margin-right: 12px;
  font-size: 1.2rem;
  color: var(--color-success, #10b981);
}

.help-section {
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.small-text {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.support-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: white;
}

/* Right Side - Form */
.forgot-username-right {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recovery-form {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}
.form-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.form-icon {
  font-size: 3rem;
  color: var(--iba-color, #3b82f6);
  margin-bottom: 20px;
  display: block;
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark, #1f2937);
  margin-bottom: 15px;
}
.form-description {
  color: var(--color-muted, #6b7280);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group label i {
  color: var(--iba-color, #3b82f6);
  margin-right: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: #f7fafc;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control.is-invalid {
  border-color: #f56565;
  background: #fff5f5;
}

.form-control.is-valid {
  border-color: #48bb78;
  background: #f0fff4;
}

.field-help {
  font-size: 0.85rem;
  color: #718096;
  margin-top: 0.5rem;
}

.invalid-feedback {
  display: none;
  color: #f56565;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.form-group.focused .form-control {
  border-color: #3b82f6;
  background: white;
}

/* Submit Button */
.btn-recovery {
width: 100%;
  padding: 16px 24px;
  background: linear-gradient(
    135deg,
    var(--iba-color, #3b82f6) 0%,
    var(--color-accent, #1e40af) 100%
  );
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md, 8px);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.btn-recovery:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-recovery:active {
  transform: translateY(0);
}

.btn-recovery:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-recovery::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}


.btn-reset:hover::before {
  left: 100%;
}

/* Form Footer */
.form-footer {
  margin-top: 32px;
  text-align: center;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.back-to-login {
  margin-bottom: 20px;
}

.back-to-login a {
  color: var(--iba-color, #3b82f6);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.back-to-login a:hover {
  color: var(--color-accent, #1e40af);
  transform: translateX(-4px);
}

.back-to-login a i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.back-to-login a:hover i {
  transform: translateX(-2px);
}

.other-links {
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.other-links p {
  color: var(--color-muted, #6b7280);
  margin: 0;
  font-size: 0.95rem;
}

.other-links a {
  color: var(--iba-color, #3b82f6);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.other-links a:hover {
  color: var(--color-accent, #1e40af);
}

.other-links a i {
  margin-right: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .forgot-username-card {
    flex-direction: column;
    margin: 1rem;
  }

  .forgot-username-left {
    padding: 2rem;
  }

  .forgot-username-right {
    padding: 2rem;
  }

  .form-icon {
    font-size: 3rem;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .brand-section h3 {
    font-size: 1.5rem;
  }
}

/* Animations */
@keyframes forgot-username-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.form-control.is-invalid {
  animation: forgot-username-shake 0.5s ease-in-out;
}
