/* Full background */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e2673, #DD1977);
  font-family: 'Segoe UI', sans-serif;
}

/* Card */
.login-card {
  background: #fff;
  padding: 35px 25px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

/* Mobile spacing */
@media (max-width: 576px) {
  .login-card {
    padding: 25px 15px;
  }
}

/* Title */
.login-card h2 {
  color: #1e2673;
}

.subtitle {
  color: #777;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Input */
.input-group-custom {
  position: relative;
  margin-bottom: 18px;
}

.input-group-custom input {
  width: 100%;
  padding: 12px 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

.input-group-custom label {
  position: absolute;
  top: 12px;
  left: 10px;
  color: #aaa;
  font-size: 14px;
  pointer-events: none;
  transition: 0.3s;
}

/* Floating effect */
.input-group-custom input:focus,
.input-group-custom input:valid {
  border-color: #DD1977;
}

.input-group-custom input:focus+label,
.input-group-custom input:valid+label {
  top: -8px;
  left: 8px;
  background: #fff;
  padding: 0 5px;
  font-size: 12px;
  color: #DD1977;
}

/* Button */
button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #DD1977, #1e2673);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Bottom text */
.bottom-text {
  margin-top: 15px;
  font-size: 14px;
}

.bottom-text span {
  color: #DD1977;
  cursor: pointer;
  font-weight: bold;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plans-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.plan-card {
  position: relative;
  padding: 18px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.plan-card:hover {
  border-color: #DD1977;
  transform: translateY(-2px);
}

.plan-card.selected-plan {
  border-color: #DD1977;
  background: #fff3f8;
  box-shadow:
    0 7px 20px rgba(221, 25, 119, 0.15);
}

.plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-name,
.plan-duration,
.plan-credit {
  display: block;
}

.plan-name {
  color: #1e2673;
  font-size: 15px;
  font-weight: 700;
}

.plan-price {
  display: block;
  margin: 10px 0 5px;
  color: #DD1977;
  font-size: 25px;
}

.plan-duration {
  color: #6b7280;
  font-size: 12px;
}

.plan-credit {
  margin-top: 8px;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

.plan-card {
  position: relative;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 20px;
  background: #dc1975;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.original-price {
  color: #8b8b8b;
  font-size: 14px;
  text-decoration: line-through;
}

.plan-character {
  display: block;
  margin-top: 10px;
  color: #157347;
  font-size: 14px;
  font-weight: 700;
}

.testing-price {
  display: block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fff3cd;
  color: #8a6100;
  font-size: 12px;
  font-weight: 700;
}

.selected-plan .testing-price {
  background: #ffffff;
  color: #b31264;
}

.plan-validity {
  display: block;
  margin-top: 8px;
  color: #1e2673;
  font-size: 14px;
  font-weight: 600;
}

.plan-benefits {
  margin: 12px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.plan-benefits li {
  margin: 6px 0;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
}

.login-card {
  width: 100%;
  max-width: 1600px;
  margin: 30px auto;
  padding: 45px;
  box-sizing: border-box;
}

.plans-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  box-sizing: border-box;
}

.plan-card {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 30px 28px 35px;
  box-sizing: border-box;
}

.plan-benefits {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.plan-benefits li {
  margin-bottom: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .login-card {
    padding: 30px 18px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .plan-card {
    padding: 28px 22px;
  }
}

.signup-details {
  width: 100%;
  margin-top: 35px;
}

.form-heading {
  margin: 0 0 25px;
  color: #172678;
  font-size: 24px;
  font-weight: 700;
  text-align: left;
}

.signup-field {
  width: 100%;
  margin-bottom: 20px;
  text-align: left;
}

.signup-field label {
  display: block;
  margin-bottom: 8px;
  color: #172678;
  font-size: 16px;
  font-weight: 600;
}

.signup-field label span {
  color: #df1473;
}

.signup-field input {
  width: 100%;
  height: 58px;
  padding: 0 17px;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  background: #ffffff;
  box-sizing: border-box;
  font-size: 16px;
  outline: none;
}

.signup-field input:focus {
  border-color: #df1473;
  box-shadow: 0 0 0 3px rgba(223, 20, 115, 0.1);
}

.signup-field input::placeholder {
  color: #999999;
}

.terms-section {
  margin: 25px 0;
  text-align: left;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #172678;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
}

.terms-checkbox input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: #d41472;
  cursor: pointer;
  flex-shrink: 0;
}

.terms-checkbox a {
  color: #d41472;
  font-weight: 700;
  text-decoration: underline;
}

.terms-warning {
  margin: 8px 0 0 31px;
  color: #d41472;
  font-size: 13px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}