html,
body {
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: visible !important;
}
body {
  background: url('./images/background.png');
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
}
.login-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  padding: 48px 36px 36px 36px;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  margin: 24px;
}
.login-title {
  font-size: 38px;
  color: #36373c;
  margin-bottom: 10px;
  font-weight: bold;
}
.login-subtitle {
  font-size: 20px;
  color: #6c6e78;
  margin-bottom: 32px;
  font-weight: 500;
}
.form-group {
  margin-bottom: 20px;
  text-align: left;
}
.phone-input-container {
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  border: 1.5px solid #e0e0e0;
  position: relative;
  overflow: visible;
  margin-bottom: 18px;
  box-sizing: border-box;
}
.select-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  height: 48px;
  min-width: 74px;
  padding: 0 15px;
  font-size: 17px;
  background: #fff;
  border: none;
  border-radius: 8px 0 0 8px;
  border-right: 1px solid #e0e0e0;
  position: relative;
  z-index: 2;
  transition: border-color 0.2s;
}
.select-btn i {
  font-size: 18px;
  margin-left: 7px;
  color: #888;
  transition: transform 0.3s;
}
.phone-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 17px;
  padding: 0 16px;
  height: 48px;
  background: transparent;
  border-radius: 0 8px 8px 0;
  z-index: 1;
  min-width: 0;
}
.content {
  display: none;
  position: absolute;
  left: 0;
  top: 54px;
  width: 270px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(66, 133, 244, 0.18);
  border: 2.5px solid #4285f4;
  z-index: 50;
  padding-bottom: 12px;
  animation: dropdown-in 0.12s;
  box-sizing: border-box;
}
@keyframes dropdown-in {
  from {
    transform: translateY(-10px);
    opacity: 0.3;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.phone-input-container.active .content {
  display: block;
}
.content .search {
  display: flex;
  align-items: center;
  padding: 11px 16px 7px 16px;
  position: relative;
}
.content .search i {
  position: absolute;
  left: 23px;
  color: #b3c2e3;
  font-size: 18px;
  z-index: 2;
}
.content .search input {
  height: 34px;
  width: 100%;
  outline: none;
  font-size: 16px;
  border-radius: 7px;
  border: 2px solid #4285f4;
  padding: 0 10px 0 30px;
  background: #f8faff;
  transition: border 0.14s;
  box-sizing: border-box;
}
.content .search input:focus {
  background: #fff;
}
.options {
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  padding: 0 8px;
}
.options li {
  font-size: 16px;
  padding: 9px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition:
    background 0.15s,
    font-weight 0.16s;
  list-style: none;
  margin-bottom: 1px;
}
.options li.selected,
.options li:hover {
  background: #e6f0ff;
  font-weight: 600;
}
.options li:last-child {
  margin-bottom: 0;
}
.options-empty {
  color: #adc5f7;
  text-align: center;
  font-size: 15px;
  padding: 19px 0 10px 0;
}
.password-input-container {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  border: 1.5px solid #e0e0e0;
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 18px;
  box-sizing: border-box;
}
.password-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 17px;
  padding: 0 16px;
  height: 48px;
  background: transparent;
  border-radius: 8px;
  min-width: 0;
}
.toggle-password {
  cursor: pointer;
  border: none;
  background: none;
  position: absolute;
  right: 15px;
  top: 0;
  height: 48px;
  display: flex;
  align-items: center;
  color: #333;
  font-size: 22px;
}
.policy-row {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #444;
  margin-bottom: 18px;
  text-align: left;
  gap: 7px;
}
.policy-row input[type='checkbox'] {
  width: 16px;
  height: 16px;
}
.policy-link {
  color: #0056d6;
  text-decoration: underline;
  cursor: pointer;
}
.submit-btn {
  width: 100%;
  background: #1877f2;
  border: none;
  color: #fff;
  font-size: 21px;
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 3px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.16s;
  letter-spacing: 2px;
}
.submit-btn:hover {
  background: #1162c9;
}
.message {
  margin-bottom: 18px;
  font-size: 15px;
  border-radius: 5px;
  padding: 10px 16px;
  display: none;
  box-sizing: border-box;
}
.message.success {
  color: #167d17;
  background: #e5fae4;
  border: 1px solid #b4ebb3;
}
.message.error {
  color: #bb2525;
  background: #ffeaea;
  border: 1px solid #ebbbbb;
}
#successModal {
  position: fixed;
  z-index: 99999 !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
}
.modal-mask {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.25);
  top: 0;
  left: 0;
}
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: 350px;
  max-width: 90vw;
  min-width: 240px;
  margin: 0 auto;
  padding: 30px 20px 20px 20px;
  z-index: 10;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.16);
  text-align: center;
  border: 3px solid #f2f2f2;
  animation: modalShow 0.2s cubic-bezier(0.18, 0.8, 0.36, 1);
}
@keyframes modalShow {
  from {
    transform: scale(0.92);
    opacity: 0.4;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-title {
  font-size: 23px;
  color: #333;
  font-weight: bold;
  margin-bottom: 12px;
}
.modal-msg {
  font-size: 16px;
  color: #6ec77d;
  margin-bottom: 24px;
}
.modal-btn {
  width: 95%;
  background: #f6f6f6;
  border: none;
  border-radius: 9px;
  color: #222;
  font-size: 18px;
  padding: 11px 0;
  cursor: pointer;
  margin: 0 auto;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: background 0.16s;
}
.modal-btn:active {
  background: #ececec;
}
@media (max-width: 500px) {
  .modal-content {
    width: 90vw;
    min-width: 0;
    padding: 20px 6vw 14px 6vw;
  }
}
@media (max-width: 600px) {
  .login-card {
    padding: 28px 8vw 18px 8vw;
    max-width: 100vw;
    min-width: 0;
  }
  .login-title {
    font-size: 28px;
  }
  .login-subtitle {
    font-size: 15px;
    margin-bottom: 22px;
  }
  .phone-input-container,
  .password-input-container {
    border-radius: 7px;
    min-width: 0;
  }
  .select-btn,
  .phone-input,
  .password-input {
    font-size: 15px;
    height: 42px;
    padding: 0 10px;
  }
  .select-btn {
    min-width: 58px;
    padding: 0 7px;
    border-radius: 7px 0 0 7px;
  }
  .phone-input {
    padding: 0 10px;
    border-radius: 0 7px 7px 0;
  }
  .content {
    width: 94vw;
    min-width: 200px;
    left: -1vw;
  }
  .content .search {
    padding: 9px 9vw 7px 16px;
  }
}
@media (max-width: 400px) {
  .login-title {
    font-size: 21px;
  }
  .login-subtitle {
    font-size: 12px;
  }
  .submit-btn {
    font-size: 15px;
  }
  .message {
    font-size: 12px;
    padding: 6px 8px;
  }
}
