/* ============================================
   Trading with Sharks - Forgot Password Page
   Dark theme with cyan accents
   ============================================ */
@import 'https://fonts.googleapis.com/css?family=Literata:300,400,600,700';
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background: #0a0a0f;
  color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.forgot-password-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 32px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
}
.header-logo:hover {
  opacity: 0.8;
}
.header-logo img {
  height: 40px;
  width: auto;
}

.header-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}
@media (max-width: 576px) {
  .header-brand {
    display: none;
  }
}

.header-brand-accent {
  color: #06b6d4;
}

.forgot-password-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  padding-top: calc(88px + 32px);
  overflow: hidden;
}

.background-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.background-orb.orb-1 {
  width: 400px;
  height: 400px;
  background: #06b6d4;
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}
.background-orb.orb-2 {
  width: 300px;
  height: 300px;
  background: #3b82f6;
  bottom: -150px;
  left: -150px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}
.forgot-password-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 460px;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 64px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  animation: slideUp 0.5s ease;
}
@media (max-width: 576px) {
  .forgot-password-card {
    padding: 48px;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.forgot-password-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 32px;
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}
.forgot-password-logo svg {
  color: white;
}

.forgot-password-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 0 0 24px 0;
}

.forgot-password-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0 0 48px 0;
  line-height: 1.6;
}

.forgot-password-form {
  width: 100%;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: #ffffff;
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.form-input:hover {
  background: rgba(31, 38, 49, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}
.form-input:focus {
  outline: none;
  background: rgba(31, 38, 49, 0.8);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}
.form-input.input-validation-error {
  border-color: #f87171;
}
.form-input.input-validation-error:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.field-validation-error,
.text-danger {
  display: block;
  font-size: 0.875rem;
  color: #f87171;
  margin-top: 8px;
  min-height: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.submit-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.submit-button svg {
  flex-shrink: 0;
}
.submit-button:hover:not(:disabled) {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}
.submit-button:active:not(:disabled) {
  transform: translateY(0);
}
.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.submit-button.loading {
  pointer-events: none;
}
.submit-button.loading svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.back-to-login {
  margin-top: 32px;
  text-align: center;
}

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  display: inline-flex;
  font-size: 0.875rem;
  color: #06b6d4;
  text-decoration: none;
  transition: all 0.3s ease;
}
.back-link svg {
  flex-shrink: 0;
}
.back-link:hover {
  color: #67e8f9;
  gap: 10px;
}

.success-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: fadeIn 0.3s ease;
}

.success-content {
  width: 100%;
  max-width: 480px;
  background: #1a1a2e;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 16px;
  padding: 64px;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  animation: slideUp 0.4s ease;
}
@media (max-width: 576px) {
  .success-content {
    padding: 48px;
  }
}

.success-icon {
  display: block;
  margin: 0 auto 32px;
  color: #4ade80;
}

.success-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 24px 0;
}

.success-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 48px 0;
}
.success-description strong {
  color: #06b6d4;
  font-weight: 600;
}

.success-button {
  width: 100%;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.success-button:hover {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.toast-notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #f87171;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  animation: slideInRight 0.3s ease, fadeOutRight 0.3s ease 2.7s;
  pointer-events: none;
}
@media (max-width: 576px) {
  .toast-notification {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }
}
.toast-notification.success {
  border-left-color: #4ade80;
}
.toast-notification.success .toast-icon {
  color: #4ade80;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeOutRight {
  to {
    opacity: 0;
    transform: translateX(400px);
  }
}
.toast-icon {
  flex-shrink: 0;
  color: #f87171;
}

#toastMessage {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.form-input:focus-visible,
.submit-button:focus-visible,
.back-link:focus-visible,
.success-button:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 9999px;
  animation: spin 0.6s linear infinite;
}

.validation-summary-errors {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid #f87171;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 32px;
}
.validation-summary-errors ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.validation-summary-errors ul li {
  font-size: 0.875rem;
  color: #f87171;
  margin-bottom: 4px;
}
.validation-summary-errors ul li:last-child {
  margin-bottom: 0;
}
