/* =====================
   Login/Signup Modal CSS - MobRadio
   ===================== */

/* ===== Base Modal Structure ===== */
.mobradio-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000001;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0, 0, 0, 0.45);
}

/* ===== Modal Content Box ===== */
.mobradio-modal-content {
  background: #fff;
  margin: 40px auto;
  padding: 0px 24px 10px 24px;
  border-radius: 12px;
  max-width: 520px;
  min-width: 480px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
  position: relative;
}

/* ===== Close Button ===== */
.mobradio-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.6em;
  color: #222;
  cursor: pointer;
  z-index: 2;
  font-weight: bold;
  transition: color 0.2s;
}

.mobradio-modal-close:hover {
  color: #0056b3;
}

.mobradio-login-link {
  font-size: 0.9em !important;
  text-decoration: none !important;
  text-align: left !important;
  display: block;
  margin-top: 10px;
  color: #007bff;
  transition: color 0.2s;
  width: 100%;
}

/* ===== Login Modal Content ===== */
.mobradio-login-modal-content {
  text-align: center;
  padding: 24px 18px 8px 18px;
  margin-top: 24px;
}

/* ===== Modal Titles ===== */
.mobradio-login-title {
  font-size: 1.18em;
  margin-bottom: 18px;
  font-weight: bold;
  color: #333;
}

.mobradio-login-promotion-title {
  font-size: 1.18em;
  font-weight: 500;
  margin-bottom: 18px;
  font-weight: bold;
  color: #333;
}

/* ===== Password Field with Icon ===== */
.mobradio-password-wrapper {
  position: relative;
  margin: 0 auto 10px auto;
}

/* ===== Input Fields ===== */
.mobradio-login-input {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.mobradio-password-wrapper .mobradio-login-input {
  width: 100%;
  padding-right: 36px;
}

.mobradio-login-input:focus {
  border-color: #007bff;
  outline: none;
}

.mobradio-login-register-text {
  font-size: 0.8em !important;
  color: #007bff !important;
  text-decoration: underline !important;
  transition: color 0.2s;
  margin-top: 10px;
  display: block;
  text-align: center;
}

/* ===== Show/Hide Password Button ===== */
#toggle-register-password,
#toggle-login-password,
#toggle-update-password {
  width: auto !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007bff;
  transition: color 0.2s;
}

#toggle-login-password:hover,
#toggle-register-password:hover,
#toggle-update-password:hover {
  color: #0056b3;
}

#toggle-login-password i,
#toggle-register-password i,
#toggle-update-password i {
  font-size: 1.1em;
}

/* ===== Login Button ===== */
[type="button"],
[type="reset"],
[type="submit"],
button {
  width: 100% !important;
}

.mobradio-login-btn {
  background: #007bff !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px;
  font-size: 1.08em;
  font-weight: 500;
  cursor: pointer;
  margin: 10px auto 0 auto;
  display: block;
  transition: background 0.2s;
  box-sizing: border-box;
}

.mobradio-login-btn:hover {
  background: #0056b3 !important;
}

.mobradio-login-btn:active {
  background-color: #0056b3 !important;
  color: #fff !important;
}

/* ===== Recovery and Register Links ===== */
.mobradio-login-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.mobradio-login-links a {
  color: #007bff;
  text-decoration: underline;
  font-size: 0.98em;
  transition: color 0.2s;
}

.mobradio-login-links a:hover {
  color: #0056b3;
}

/* ===== Error Message ===== */
.mobradio-login-error {
  color: #c00;
  margin-top: 10px;
  font-size: 1em;
}

/* ===== Success Modal ===== */
.mobradio-success-modal {
  text-align: center;
  padding: 32px 12px;
}

.mobradio-success-title {
  font-size: 1.2em;
  font-weight: bold;
  /* color: #28a745; */
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobradio-success-title i {
  /* color: #28a745; */
  font-size: 1.3em;
  margin-left: 8px;
  margin-right: 0;
}

.mobradio-success-desc {
  font-size: 1em;
  color: #333;
  margin-bottom: 16px;
  text-align: center;
}

.mobradio-success-ask-login {
  color: #111;
  font-size: 1em;
  margin-bottom: 18px;
  text-align: center;
}

.mobradio-success-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.mobradio-success-login-btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 22px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

.mobradio-success-login-btn:hover,
.mobradio-success-login-btn:focus {
  background: #0056b3;
}

.mobradio-success-close {
  background: #eee;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 7px 22px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

.mobradio-success-close:hover,
.mobradio-success-close:focus {
  background: #ddd;
  color: #111;
}

/* ===== Responsive Styles ===== */
@media (max-width: 480px) {
  .mobradio-modal-content {
    max-width: 98vw;
    min-width: auto;
    margin: 12px auto;
    border-radius: 6px;
    padding: 0 2vw;
  }

  .mobradio-login-modal-content {
    padding: 12px 2vw 4px 2vw;
    margin-top: 8px;
  }

  .mobradio-success-modal {
    padding: 18px 2px;
  }
}

/* ===== Auto Close Message ===== */
.mobradio-auto-close-msg {
  font-size: 0.92em;
  color: #888;
  margin-top: 8px;
  text-align: center;
  opacity: 0.7;
}

/* ===== Password Update Success Modal ===== */
.mobradio-update-success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobradio-update-success-modal {
  background: #fff;
  padding: 32px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 16px #0002;
  min-width: 320px;
  max-width: 90vw;
  text-align: center;
}
.mobradio-update-success-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #28a745;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobradio-update-success-title i {
  color: #28a745;
  font-size: 1.3em;
  margin-right: 8px;
}
.mobradio-update-success-ask-login {
  color: #111;
  font-size: 1em;
  margin-bottom: 10px;
  margin-top: 2px;
  text-align: center;
}
.mobradio-update-success-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.mobradio-update-success-login-btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 22px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.mobradio-update-success-login-btn:hover,
.mobradio-update-success-login-btn:focus {
  background: #0056b3;
}
.mobradio-update-success-close {
  background: #eee;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 7px 22px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.mobradio-update-success-close:hover,
.mobradio-update-success-close:focus {
  background: #ddd;
  color: #111;
}

/* ===== Login Hint Text ===== */
.mobradio-login-hint {
  margin-bottom: 10px;
  color: #444;
  font-size: 0.98em;
  text-align: center;
}
