/* --- GLOBAL STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #07182f 0%, #0d2b4e 100%);
  color: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- LOADER STYLES --- */
#qaruno-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 24, 47, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-bg {
  text-align: center;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 181, 200, 0.3);
  border-top: 4px solid #00b5c8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-brand {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.loader-msg {
  color: #00b5c8;
  font-size: 1.1rem;
  font-weight: 500;
}

/* --- COOKIE BANNER STYLES --- */
#cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 380px;
  background: rgba(7, 24, 47, 0.95);
  border: 2px solid #00b5c8;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 181, 200, 0.2);
  z-index: 10000;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: none;
}

#cookie-banner.minimized {
  width: 60px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  bottom: 1rem;
  left: 1rem;
}

#cookie-banner.minimized .cookie-content {
  display: none;
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cookie-title {
  color: #FFD700;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.cookie-close {
  background: none;
  border: none;
  color: #00b5c8;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-close:hover {
  background: rgba(0, 181, 200, 0.1);
  transform: scale(1.1);
}

.cookie-message {
  color: #cceff5;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #00b5c8;
  text-decoration: none;
  flex: 1;
  text-align: center;
}

.cookie-btn.accept {
  background: #00b5c8;
  color: white;
}

.cookie-btn.accept:hover {
  background: #008aa5;
  border-color: #008aa5;
}

.cookie-btn.settings {
  background: transparent;
  color: #00b5c8;
}

.cookie-btn.settings:hover {
  background: rgba(0, 181, 200, 0.1);
}

.cookie-icon {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #00b5c8;
  font-size: 1.5rem;
}

#cookie-banner.minimized .cookie-icon {
  display: flex;
}

/* --- HEADER STYLES --- */
header {
  background: rgba(7, 24, 47, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- NAV LOGO WITH IMAGE + TEXT --- */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.3rem 0;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}

.nav-logo-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #00b5c8);
  transition: width 0.3s ease;
}

.nav-logo:hover::after {
  width: 100%;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
}

.nav-logo:hover .nav-logo-text {
  filter: brightness(1.2);
  transform: translateX(3px);
}

.nav-logo:hover {
  transform: translateY(-2px);
}

/* --- NAV BUTTON STYLES --- */
nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-btn, .nav-btn-login {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.5rem 1.45rem;
  font-size: 1.05rem;
  border-radius: 2rem;
  border: 2px solid #00b5c8;
  background: transparent;
  color: #00b5c8;
  margin-left: 1.15rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn:hover, .nav-btn:focus {
  background: rgba(0, 181, 200, 0.1);
  color: #00b5c8;
  border-color: #00b5c8;
}

.nav-btn-login {
  background: #00b5c8;
  color: #fff;
  border: 2px solid #00b5c8;
  font-weight: 700;
}

.nav-btn-login:hover, .nav-btn-login:focus {
  background: #008aa5;
  color: #fff;
  border-color: #008aa5;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: rgba(0, 181, 200, 0.1);
  border: 2px solid #00b5c8;
  border-radius: 0.6rem;
  font-size: 1.3rem;
  color: #00b5c8;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(0, 181, 200, 0.2);
  transform: scale(1.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

/* --- MAIN CONTENT STYLES --- */
main {
  flex: 1 0 auto;
}

/* --- FORGOT PASSWORD HERO SECTION --- */
.forgot-hero {
  background: linear-gradient(135deg, rgba(234, 253, 255, 0.08) 0%, rgba(0, 181, 200, 0.05) 100%);
  padding: 4rem 0 6rem 0;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
}

.forgot-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Forgot Password Card */
.forgot-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.forgot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFD700 0%, #00b5c8 100%);
}

.forgot-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.forgot-header h1 {
  color: #07182f;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.forgot-header p {
  color: #666;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Form Styles */
.forgot-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #07182f;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.form-label i {
  color: #00b5c8;
  width: 16px;
}

.form-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e1e5e9;
  border-radius: 0.75rem;
  background: #fff;
  font-size: 1rem;
  color: #07182f;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.form-input:focus {
  border-color: #00b5c8;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 181, 200, 0.15);
  transform: translateY(-2px);
}

/* Error Container */
.error-container {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.error-container i {
  color: #ff6b6b;
  font-size: 1.1rem;
}

.error-text {
  color: #d63031;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Success Container */
.success-container {
  background: rgba(76, 217, 100, 0.1);
  border: 1px solid rgba(76, 217, 100, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.success-container i {
  color: #4cd964;
  font-size: 1.1rem;
}

.success-text {
  color: #2e8b57;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Submit Button */
.submit-btn {
  background: linear-gradient(135deg, #00b5c8 0%, #008aa5 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.1rem 2rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 181, 200, 0.3);
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #008aa5 0%, #006f87 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 181, 200, 0.4);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  display: block;
}

.btn-loader {
  display: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* Help Text */
.help-text {
  background: rgba(0, 181, 200, 0.05);
  border: 1px solid rgba(0, 181, 200, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 1.5rem 0;
  text-align: center;
}

.help-text p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.help-text i {
  color: #00b5c8;
  font-size: 0.9rem;
}

/* Back Link */
.back-link {
  text-align: center;
  margin-top: 2rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #00b5c8;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.back-btn:hover {
  color: #008aa5;
  background: rgba(0, 181, 200, 0.1);
  transform: translateX(-5px);
}

/* SEO Content */
.seo-content {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e5e9;
}

.seo-content p {
  color: #666;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
}

/* Forgot Password Illustration */
.forgot-illustration {
  padding: 2rem;
}

.illustration-content h2 {
  color: #FFD700;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.illustration-content p {
  color: #cceff5;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(8px);
  border-color: rgba(0, 181, 200, 0.3);
}

.feature-item i {
  color: #00b5c8;
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.feature-item span {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

/* --- FOOTER STYLES --- */
footer {
  background: rgba(7, 24, 47, 0.9);
  color: #fff;
  padding: 3rem 0 2rem 0;
  text-align: center;
  flex-shrink: 0;
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(0, 181, 200, 0.2);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.footer-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFD700;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #00b5c8;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FFD700, #00b5c8);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: #FFD700;
  transform: translateY(-2px);
}

.footer-copyright {
  font-size: 0.95rem;
  color: #cceff5;
  margin-top: 1rem;
}

/* --- BACK TO TOP BUTTON --- */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b5c8 0%, #008aa5 100%);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,181,200,0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255,215,0,0.4);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .forgot-wrapper {
    gap: 3rem;
  }
  
  .forgot-card {
    padding: 2.5rem 2rem;
  }
  
  .forgot-header h1 {
    font-size: 2.2rem;
  }
  
  .illustration-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  .forgot-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 500px;
  }
  
  .forgot-illustration {
    order: -1;
    text-align: center;
    padding: 0 2rem;
  }
  
  .feature-list {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .feature-item {
    flex: 1;
    min-width: 200px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  .container {
    width: 100%;
    padding: 0 1rem;
  }
  
  /* Mobile menu styles */
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 24, 47, 0.98);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 181, 200, 0.2);
  }
  
  nav.active {
    display: flex;
  }
  
  .nav-btn, .nav-btn-login {
    width: 100%;
    margin: 0.5rem 0;
    text-align: center;
    margin-left: 0;
    justify-content: center;
  }
  
  .forgot-hero {
    padding: 2rem 0 4rem 0;
    min-height: auto;
  }
  
  .forgot-card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .forgot-header h1 {
    font-size: 2rem;
  }
  
  .forgot-header p {
    font-size: 1rem;
  }
  
  .form-input {
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
  }
  
  .submit-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .illustration-content h2 {
    font-size: 1.8rem;
  }
  
  .illustration-content p {
    font-size: 1.05rem;
  }
  
  .feature-list {
    flex-direction: column;
  }
  
  .feature-item {
    justify-content: flex-start;
    text-align: left;
  }
  
  #backToTop {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  /* Cookie banner mobile */
  #cookie-banner {
    width: calc(100% - 2rem);
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    margin: 0 auto;
  }
  
  #cookie-banner.minimized {
    width: 50px;
    height: 50px;
    bottom: 0.5rem;
    left: 0.5rem;
    right: auto;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    flex: none;
  }
  
  /* Footer mobile */
  footer .container {
    padding: 0 1rem;
  }
  
  .footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem 0.5rem;
    max-width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-links a {
    margin: 0;
    font-size: 0.88rem;
    white-space: normal;
    line-height: 1.3;
    padding: 0 0.2rem;
    position: relative;
  }
  
  .footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #00b5c8);
    transition: width 0.3s ease;
  }
  
  .footer-links a:hover::after {
    width: 100%;
  }
  
  .footer-links a:hover {
    color: #FFD700;
    transform: translateY(-2px);
  }
}

@media (max-width: 480px) {
  .forgot-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .forgot-header h1 {
    font-size: 1.8rem;
  }
  
  .feature-item {
    padding: 0.8rem;
  }
  
  .feature-item i {
    font-size: 1.1rem;
  }
  
  .feature-item span {
    font-size: 0.9rem;
  }
  
  .footer-links {
    gap: 0.8rem 0.3rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
}

/* Shake animation for errors */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}