/* ===== LOGIN PAGE STYLES ===== */
/* Using existing CSS custom properties from style.css */

.main-header {
  background: linear-gradient(90deg, #5EE0D3 -19.83%, #6A47C7 96.77%);
}

.header-container:after {
    content: '';
    background: linear-gradient(
  90deg,
  rgba(116, 186, 237, 0.84) 11.99%,
  rgba(106, 71, 199, 0.84) 87.07%
);
    width: 395px;
    height: 395px;
    position: absolute;
    border-radius: 100%;
    top: -14rem;
    left: -9rem;
    filter: blur(44px);
}

.header-container:before {
    content: '';
    background: linear-gradient(
  90deg,
  rgba(116, 186, 237, 0.84) 11.99%,
  rgba(106, 71, 199, 0.84) 87.07%
);
    width: 395px;
    height: 395px;
    position: absolute;
    border-radius: 100%;
    top: -12rem;
    right: -3rem;
    filter: blur(2px);
}

.main-header:before {
    content: '';
    width: 100%;
    -webkit-backdrop-filter: brightness(0.7);
    backdrop-filter: brightness(0.7);
    height: 120px;
    position: absolute;
    z-index: 1;
}

/* Login Page Body */
.login-page {
  background: #fff;
  min-height: 100vh;
  font-family: 'Lato', sans-serif;
}

/* Login Main Container */
.login-main {
  padding-top: 15rem; /* Account for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 0fr;
  max-width: var(--container-2xl);
  width: 100%;
  margin: 0 auto;
  gap: var(--spacing-3xl);
  align-items: start;
}

/* Login Form Section */
.login-form-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-content {
  width: 100%;
  display: flex;
  gap: 25px;
  flex-direction: column;
}

.login-title {
  font-size: var(--font-size-5xl);
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-weight: 200;
}

.login-subtitle {
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-2xl);
  background: linear-gradient(90deg, #5EE0D3 -19.83%, #6A47C7 96.77%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.register-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  text-decoration: underline;
  font-family: 'LatoWeb';
}

.register-link:hover {
  color: var(--text-color);
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  max-width: 557px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-input {
  padding: var(--spacing-md);
  border: 1px solid var(--secondary-color);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: #000;
  font-size: var(--font-size-base);
  font-family: 'Lato', sans-serif;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: #C8C8C8;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.15);
}

.error-message {
  color: #ff6b6b;
  font-size: var(--font-size-sm);
  display: none;
}

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

/* Login Button */
.login-btn {
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(86.22deg, var(--secondary-color) -0.22%, var(--primary-color) 96.45%);
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-color);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Lato', sans-serif;
}

button.login-btn span {
    background: transparent;
    background-clip: text;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    font-weight: 800;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(106, 71, 199, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--text-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Graphics Section */
.login-graphics-section {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 28vw;
}

.graphics-content {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.number-graphic {
  font-size: clamp(8rem, 15vw, 12rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.1);
  font-family: 'Poiret One', cursive;
  user-select: none;
  position: relative;
}

.number-graphic::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
}

/* Success Overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(106, 71, 199, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.success-overlay.show {
  opacity: 1;
  visibility: visible;
}

.success-content {
  text-align: center;
  color: var(--text-color);
  animation: successSlideIn 0.5s ease-out;
}

.success-icon {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--spacing-lg);
  color: var(--secondary-color);
}

.success-content h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
  font-family: 'Poiret One', cursive;
}

.success-content p {
  font-size: var(--font-size-base);
  color: var(--muted-text-color);
}

.plans-slider {
  margin: var(--spacing-xl) 0;
  padding: 0 var(--spacing-md);
  position: relative;
  overflow: visible;
}

.plans-slider .swiper-wrapper {
  align-items: stretch;
}

.plans-slider .swiper-slide {
  width: clamp(280px, 30vw, 448px);
  height: auto;
}

.plan-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border-radius: var(--radius-lg);
}

.plan-card:hover {
  transform: scale(1.04);
}

@keyframes successSlideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
  }
  
  .login-form-content {
    margin: 0 auto;
  }
  
  .graphics-content {
    height: 200px;
  }
  
  .number-graphic {
    font-size: clamp(4rem, 10vw, 6rem);
  }
}

@media (max-width: 768px) {
  .login-main {
    padding-top: 100px;
  }
  
  .login-container {
    gap: var(--spacing-xl);
  }
  
  .login-title {
    font-size: var(--font-size-3xl);
  }
  
  .form-input {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .login-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .login-container {
  }
  
  .login-form-content {
    max-width: 100%;
  }
  
  .graphics-content {
    height: 150px;
  }
  
  .number-graphic {
    font-size: clamp(3rem, 8vw, 4rem);
  }
}

/* ===== PRICING PLANS STYLES ===== */
.plans-section {
  margin: var(--spacing-xl) 0;
  width: 100%;
  width: 85vw;
}

.plans-title {
  font-size: var(--font-size-lg);
  color: var(--text-color);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  font-family: 'Poiret One', cursive;
  font-weight: 300;
}

/* Plans Swiper Container */
.plans-slider {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
  /* overflow: hidden; */
}

.plans-slider .swiper-wrapper {
  display: flex;
  align-items: stretch;
  width: max-content;
}

.plans-slider .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
  width: 280px !important;
  flex-shrink: 0;
}

/* Plan Card Styles */
.plan-card {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  color: var(--text-color);
  width: 280px !important;
  max-width: 280px !important;
  min-width: 280px !important;
  height: 100%;
  display: flex;
  gap: 4px;
  flex-direction: column;
  justify-content: space-between;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(106, 71, 199, 0.3);
}

.plan-header {
  margin-bottom: var(--spacing-lg);
}

.plan-name {
  font-size: var(--font-size-xl);
  font-weight: 300;
  margin-bottom: var(--spacing-md);
  font-family: 'Poiret One', cursive;
}

.plan-price {
  margin-bottom: var(--spacing-lg);
}

.price-amount {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  display: block;
  font-family: 'Lato', sans-serif;
}

.price-period {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  font-weight: 300;
}

.plan-select-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-color);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: var(--spacing-md);
  font-family: 'Lato', sans-serif;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.plan-select-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.plan-select-btn:active {
  transform: translateY(0);
}

.plan-monthly-price {
  font-size: var(--font-size-sm);
  opacity: 0.7;
  font-weight: 300;
}

/* Plans Navigation - Using existing case-study-navigation styles */
.plans-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-lg);
}

.plans-navigation .swiper-button-prev,
.plans-navigation .swiper-button-next {
  position: static;
  margin-top: 0;
  width: 48px;
  height: 48px;
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  padding: 0;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

.plans-navigation .swiper-button-prev:after,
.plans-navigation .swiper-button-next:after {
  display: none;
}

.plans-navigation .swiper-button-prev {
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='24' viewBox='0 0 48 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.20574 10.9393C0.619951 11.5251 0.619951 12.4749 1.20574 13.0607L10.7517 22.6066C11.3375 23.1924 12.2872 23.1924 12.873 22.6066C13.4588 22.0208 13.4588 21.0711 12.873 20.4853L4.38772 12L12.873 3.51472C13.4588 2.92894 13.4588 1.97919 12.873 1.3934C12.2872 0.807615 11.3375 0.807615 10.7517 1.3934L1.20574 10.9393ZM48 10.5L2.26642 10.5L2.26642 13.5L48 13.5L48 10.5Z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 12px;
}

.plans-navigation .swiper-button-next {
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='24' viewBox='0 0 48 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M46.7943 13.0607C47.38 12.4749 47.38 11.5251 46.7943 10.9393L37.2483 1.3934C36.6625 0.807615 35.7128 0.807615 35.127 1.3934C34.5412 1.97919 34.5412 2.92894 35.127 3.51472L43.6123 12L35.127 20.4853C34.5412 21.0711 34.5412 22.0208 35.127 22.6066C35.7128 23.1924 36.6625 23.1924 37.2483 22.6066L46.7943 13.0607ZM0 12L-1.15519e-07 13.5L45.7336 13.5L45.7336 12L45.7336 10.5L1.15519e-07 10.5L0 12Z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 12px;
}

.plans-navigation .swiper-button-prev:hover,
.plans-navigation .swiper-button-next:hover {
  background-color: transparent;
  border: none;
  transform: scale(1.1);
  opacity: 0.8;
}

.plans-navigation .swiper-button-prev:active,
.plans-navigation .swiper-button-next:active {
  transform: scale(0.95);
  opacity: 0.6;
}

/* Plans Pagination */
.plans-pagination {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plans-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  opacity: 1;
  margin: 0 !important;
  flex-shrink: 0;
  transform: scale(1);
}

.plans-pagination .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.plans-pagination .swiper-pagination-bullet-active {
  background: #fff;
  transform: scale(1.2);
}

.plans-pagination .swiper-pagination-bullet-active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: rgba(106, 71, 199, 0.8);
  border-radius: 50%;
}

/* Plan Selection States */
.plan-card.selected-plan {
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(106, 71, 199, 0.4);
  transform: translateY(-8px) scale(1.02);
}

.plan-card.active-plan {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 25px rgba(106, 71, 199, 0.25);
}

.plan-select-btn.selected {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.9);
}

.plan-select-btn.selected:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* Plan Selection Indicator */
.plan-selection-indicator {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: linear-gradient(135deg, rgba(94, 224, 211, 0.1) 0%, rgba(106, 71, 199, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.plan-selection-indicator.visible {
  opacity: 1;
  transform: translateY(0);
}

.selection-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.selection-text {
  color: var(--text-color);
  font-size: var(--font-size-sm);
  font-family: 'Lato', sans-serif;
}

.change-plan-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-color);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.change-plan-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.template {
  background: white;
  padding: calc(var(--spacing-3xl)*2) 0;
}

.template-content {
  flex-direction: column;
  gap: var(--spacing-2xl);
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 768px) {
  .plans-slider .swiper-slide {
    width: 260px;
    flex-shrink: 0;
  }
  
  .plan-card {
    width: 260px;
    max-width: 260px;
    min-width: 260px;
    padding: var(--spacing-lg);
  }
  
  .plans-title {
    font-size: var(--font-size-xl);
  }
  
  .price-amount {
    font-size: var(--font-size-2xl);
  }
  
  .selection-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .change-plan-btn {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .plans-slider .swiper-slide {
    width: 240px;
    flex-shrink: 0;
  }
  
  .plan-card {
    width: 240px;
    max-width: 240px;
    min-width: 240px;
    padding: var(--spacing-md);
  }
  
  .plans-navigation .swiper-button-prev,
  .plans-navigation .swiper-button-next {
    width: 40px;
    height: 40px;
    background-size: 20px 10px;
  }
  
  .plans-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
  
  .plan-selection-indicator {
    padding: var(--spacing-sm);
  }
  
  .selection-text {
    font-size: var(--font-size-xs);
  }
}
@supports not (gap: 1rem) {
  .login-form-content > * + * { margin-top: 25px; }
  .login-form > * + * { margin-top: var(--spacing-lg); }
  .form-group > * + * { margin-top: var(--spacing-xs); }
  .plans-navigation > * + * { margin-left: var(--spacing-xs); }
  .plans-pagination > * + * { margin-left: 8px; }
  .selection-content > * + * { margin-left: var(--spacing-md); }
}
@-webkit-keyframes successSlideIn {
  from {
    -webkit-transform: translateY(30px);
            transform: translateY(30px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}