.form-wrapper {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 60px 35px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

/* Form Group */
.form-group {
  width: 100%;
}

/* Heading */
.heading {
  font-size: 20px;
  font-weight: bold;
  line-height: 36px;
  letter-spacing: 0.0703px;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 50px;
}

.form-alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.form-alert-list {
  padding-left: 18px;
}

.form-alert-error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.form-alert-success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Field Container */
.field-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.1504px;
  color: #0a0a0a;
}

.field-input {
  background-color: #f3f3f5;
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.1504px;
  color: #0a0a0a;
  height: 36px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.field-input::placeholder {
  color: rgba(10, 10, 10, 0.2);
}

.field-input:focus {
  border-color: #4cbf65;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap .field-input {
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #8d95a1;
  cursor: pointer;
}

.password-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.password-toggle-btn .eye-off-line {
  display: none;
}

.password-toggle-btn.is-visible .eye-off-line {
  display: block;
}

/* Checkbox Row */
.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-input {
  width: 16px;
  height: 16px;
  background-color: #f7f7f7;
  border: 1px solid #a1a1a1;
  border-radius: 2px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
}

.checkbox-input:checked {
  background-color: #4cbf65;
  border-color: #4cbf65;
}

.checkbox-input:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.1504px;
  color: #717182;
}

.forgot-link {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.1504px;
  color: var(--primary-accent);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Login Button */
.login-button {
  background-color: var(--primary-color);
  border: none;
  border-radius: 10px;
  height: 44px;
  width: 100%;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.1504px;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-button:hover {
  background-color: var(--primary-accent);
}

.login-button:active {
  background-color: var(--primary-accent);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-wrapper {
    padding: 0 100px;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    padding: 0 20px;
  }

  .container {
    max-width: 100%;
  }

  .form-wrapper {
    padding: 40px 24px;
  }

  .heading {
    font-size: 18px;
    margin-bottom: 48px;
  }
}

@media (max-width: 480px) {

  .form-wrapper {
    padding: 32px 20px;
  }

  .heading {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .checkbox-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .forgot-link {
    margin-left: 24px;
  }
}

@media (max-width: 360px) {
  .form-wrapper {
    padding: 24px 16px;
  }

  .field-input {
    font-size: 16px;
    /* Prevent zoom on iOS */
  }
}
