/* Login Page Specific Styles */

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

/* Main Container */
.login-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.login-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  position: relative;
}

/* Left Brand Section */
.login-left {
  display: none; /* Hidden on mobile */
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(18, 140, 126, 0.15) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px 24px 0 0;
  padding: 40px 25px 35px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.holographic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: holographic 8s linear infinite;
  pointer-events: none;
}

@keyframes holographic {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 200%;
  }
}

.brand-section {
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(20px);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.6;
  }
}

.logo {
  position: relative;
  width: 75px;
  height: 75px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  border: 2px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(37, 211, 102, 0.2);
  z-index: 1;
}

.logo i {
  font-size: 36px;
  color: var(--primary-color);
  filter: drop-shadow(0 0 10px var(--primary-color));
  z-index: 2;
}

.logo-pulse {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.brand-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.title-gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 50%, var(--neon-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 22px;
  font-weight: 400;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  padding: 12px 14px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-item:active::before {
  left: 100%;
}

.feature-item:active {
  transform: scale(0.98);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}

.feature-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-neon);
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 18px;
  color: var(--text-white);
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  flex: 1;
}

.feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}

.feature-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* Right Form Section */
.login-right {
  background: transparent;
  padding: 25px 20px;
  position: relative;
}

.form-glass-effect {
  display: none;
}

.login-form-container {
  position: relative;
  z-index: 1;
}

.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.header-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-neon);
  position: relative;
}

.header-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--neon-green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.5;
  animation: rotateBorder 3s linear infinite;
}

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

.header-icon i {
  font-size: 24px;
  color: var(--text-white);
  z-index: 1;
}

.form-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.form-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 400;
}

.login-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label i {
  color: var(--primary-color);
  font-size: 14px;
}

.input-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-glass);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-white);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

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

.input-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 14px;
  opacity: 0;
  background: var(--primary-color);
  filter: blur(20px);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.form-group input:focus ~ .input-glow {
  opacity: 0.3;
}

.input-border {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--neon-green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.form-group input:focus ~ .input-border {
  opacity: 1;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.toggle-password:active {
  color: var(--primary-color);
  transform: translateY(-50%) scale(0.9);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.remember-me input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-glass);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.remember-me input:checked ~ .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-neon);
}

.remember-me input:checked ~ .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-white);
  font-size: 12px;
  font-weight: bold;
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.forgot-password:active {
  opacity: 0.7;
  transform: scale(0.95);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-neon);
  touch-action: manipulation;
  min-height: 48px;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--neon-green));
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(20px);
}

.login-btn:active .btn-glow {
  opacity: 0.5;
}

.btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: left 0.5s ease;
}

.login-btn:active .btn-shine {
  left: 100%;
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-icon {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.login-btn:active {
  transform: scale(0.98);
}

.login-btn:active .btn-icon {
  transform: translateX(4px);
}

.divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 28px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.social-login {
  margin-bottom: 26px;
}

.social-btn {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-glass);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  color: var(--text-white);
  touch-action: manipulation;
  min-height: 56px;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-btn {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-color);
  transform: scale(0);
  opacity: 0.5;
  pointer-events: none;
}

.whatsapp-btn:active {
  background: rgba(37, 211, 102, 0.1);
  border-color: var(--primary-light);
  transform: scale(0.98);
}

.whatsapp-btn i {
  font-size: 22px;
  position: relative;
  z-index: 1;
}

.signup-link {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-top: 16px;
}

.signup-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 3px;
  display: inline-block;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.signup-link a span {
  position: relative;
  z-index: 1;
}

.signup-link a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.signup-link a:active::after {
  width: 100%;
}

/* Loading State */
.login-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.login-btn.loading .btn-text,
.login-btn.loading .btn-icon {
  opacity: 0;
}

.login-btn.loading::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--text-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tablet and Desktop */
@media (min-width: 769px) {
  body {
    padding: 30px;
  }

  .login-wrapper {
    max-width: 1000px;
    flex-direction: row;
    min-height: 600px;
  }

  .login-left {
    display: flex; /* Show on tablet/desktop */
    flex: 1;
    border-radius: 24px 0 0 24px;
    padding: 35px 30px;
    min-height: auto;
    border-right: none;
  }

  .logo {
    width: 110px;
    height: 110px;
  }

  .logo i {
    font-size: 50px;
  }

  .brand-title {
    font-size: 42px;
  }

  .tagline {
    font-size: 16px;
  }

  .features {
    gap: 18px;
  }

  .feature-item {
    padding: 18px 20px;
  }

  .feature-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.2);
  }

  .login-right {
    flex: 1;
    padding: 35px 30px;
  }

  .login-form-container {
    max-width: 420px;
    margin: 0 auto;
  }

  .form-header h2 {
    font-size: 26px;
  }

  .form-header p {
    font-size: 13px;
  }

  .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon-strong);
  }

  .login-btn:hover .btn-glow {
    opacity: 0.3;
  }

  .whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: var(--primary-light);
    transform: translateY(-2px);
  }

  .forgot-password:hover {
    opacity: 0.8;
  }

  .signup-link a:hover::after {
    width: 100%;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .login-wrapper {
    max-width: 1100px;
  }

  .login-left {
    padding: 40px 35px;
  }

  .login-right {
    padding: 40px 35px;
  }
}
