:root {
  --primary-color: #D8272A;
  --secondary-color: #1E1E1E;
  --dark-bg: #000000;
  --darker-bg: #1E1E1E;
  --text-color: #e6e6e6;
  --accent-color: #D8272A;
}

body.dark-theme {
  background-color: var(--dark-bg);
  color: var(--text-color);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Container adjustments for mobile */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

header h1 {
  color: var(--secondary-color);
  font-size: 2.5rem;
}

.pricing-plans {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.plan {
  background: var(--darker-bg);
  border-radius: 10px;
  padding: 2rem;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.plan:hover {
  transform: translateY(-5px);
}

.plan.featured {
  border: 2px solid var(--accent-color);
  position: relative;
}

.plan h2 {
  color: var(--secondary-color);
  margin-top: 0;
}

.price {
  font-size: 1.8rem;
  margin: 1.5rem 0;
  color: white;
}

.input-with-icon i {
  color: black !important;
}

.saving {
  color: var(--accent-color);
  font-weight: bold;
}

button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
  width: 100%;
}

button:hover {
  background: var(--secondary-color);
}

.success-message, .cancel-message {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--darker-bg);
  border-radius: 10px;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--secondary-color);
}

/* Payment Subscribe Page Styles */
.pricing-container {
  max-width: 500px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--darker-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card.featured {
  border: 2px solid var(--accent-color);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.price {
  font-size: 3rem;
  font-weight: bold;
  margin: 1rem 0;
  color: #ffffff;
}

.price .currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.price .period {
  font-size: 1rem;
  color: var(--text-muted);
}

.features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.features i {
  margin-right: 1rem;
  color: var(--secondary-color);
}

.btn-subscribe {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-subscribe:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.secure-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.secure-payment i {
  margin-right: 0.5rem;
  color: var(--success-color);
}

/* Email Verification Page Styles */
.verification-card {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--darker-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.verification-header {
  text-align: center;
  margin-bottom: 2rem;
}

.verification-header i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.verification-content {
  text-align: center;
  padding: 1rem 0;
}

.verification-icon i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.email-display {
  font-weight: bold;
  color: var(--secondary-color);
  margin: 1rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: inline-block;
}

.tips {
  margin: 2rem 0;
  text-align: left;
}

.tip {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.tip i {
  margin-right: 1rem;
  color: var(--primary-color);
}

.btn-resend {
  padding: 0.8rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-resend:hover {
  background: var(--secondary-color);
}

.support-link {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
}

.support-link a {
  color: var(--secondary-color);
}

/* Error Page Styles */
.error-card {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--darker-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--accent-color);
}

.error-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.error-header i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-right: 1rem;
}

.error-header h1 {
  color: var(--secondary-color);
  margin: 0;
}

.error-message {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.error-details {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.error-details pre {
  white-space: pre-wrap;
  font-family: monospace;
  margin: 0;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.btn-home:hover {
  background: var(--secondary-color);
}

.btn-home i {
  margin-right: 0.5rem;
}




/* Login Card Container - Mobile-first approach */
.login-card {
  background: var(--darker-bg);
  border-radius: 8px;
  width: calc(100% - 2rem); /* Full width minus margins */
  max-width: 380px; /* Reduced from 450px */
  margin: 1rem auto; /* Added vertical margin */
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: 2px solid #ff0000;
  box-sizing: border-box;
}


/* Full Width Input Fields */
.full-width-input {
  width: 100%;
}

.full-width-input input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  box-sizing: border-box;
}

/* Full Width Buttons */
.full-width-btn {
  width: 100%;
  box-sizing: border-box;
}

/* Form Group Spacing */
.form-group {
  margin-bottom: 1.8rem;
}



/* Add this to your CSS to ensure icons display */
.fa, .fas, .far, .fal, .fab {
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button-group form {
  width: 100%;
}

.btn-cancel,

.btn-logout {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  background: #444;
  color: white;
  transition: background 0.3s ease;
}

.btn-cancel:hover {
  background: #ff4c4c;
}

.btn-logout:hover {
  background: #777;
}


/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
  .login-card {
    padding: 1.5rem;
    margin: 1rem auto;
  }
  
  .full-width-input input {
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .login-card {
    max-width: 100%; /* Allow to fill available space */
    width: calc(100% - 1rem); /* Tight margins */
    padding: 1.2rem;
    margin: 0.5rem auto;
    border-radius: 6px;
  }
  
  .container {
    padding: 0.5rem;
    justify-content: flex-start;
    padding-top: 1rem;
  }
  
  /* More compact form elements */
  .full-width-input input {
    padding: 0.7rem 0.8rem 0.7rem 2.2rem;
    font-size: 0.85rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  /* Adjust branding for very small screens */
  .branding-header img {
    height: 70px !important;
    margin-bottom: 0.3rem !important;
  }
  
  .branding-header h1 {
    font-size: 1.3rem !important;
    margin-top: 0.3rem !important;
  }
  
  /* Smaller buttons */
  button, .btn-subscribe {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
}

/* For extremely small devices (under 360px) */
@media (max-width: 360px) {
  .login-card {
    padding: 1rem;
  }
  
  .full-width-input input {
    padding: 0.6rem 0.7rem 0.6rem 2rem;
  }
  
  .branding-header img {
    height: 60px !important;
  }
}