/* login.css */

body.modal-open {
    overflow: hidden;
    touch-action: none;
}

.modal {
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1200;
    -webkit-overflow-scrolling: touch;
}

.modal-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    margin: auto;
    box-sizing: border-box;
}

body.dark-theme .modal-box {
  background: #2c2c2c;
  color: #eee;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

body.dark-theme .modal-close:hover {
  color: #fff;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #3aa17e;
  margin-bottom: 8px;
}

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

body.dark-theme .modal-subtitle {
  color: #aaa;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.8px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  background: #f9f9f9;
  color: #333;
  box-sizing: border-box;
}

.modal-input:focus {
  border-color: #3aa17e;
  background: #fff;
}

body.dark-theme .modal-input {
  background: #2a2a2a;
  border-color: #444;
  color: #eee;
}

.modal-submit {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  background: #3aa17e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}

.modal-submit:hover {
  background: #2e7d62;
}

.modal-msg {
  margin-top: 14px;
  font-size: 14px;
  color: #3aa17e;
  text-align: center;
  min-height: 20px;
}

/* Captcha */
.slider-captcha {
    margin: 20px 0;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 45px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.slider-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 100%;
  background: var(--accent-color, #3aa17e);
  color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s;
}

.slider-thumb:hover {
  background: #2e7d62;
}

.slider-text {
  font-size: 14px;
  color: #777;
  z-index: 2;
  pointer-events: none;
}

.slider-track.verified {
  background: #e1f5fe;
  border-color: #4CAF50;
}

.slider-track.verified .slider-text {
  color: #3aa17e;
  font-weight: bold;
}

body.dark-theme .slider-track {
  background: #2a2a2a;
  border-color: #444;
  color: #eee;
}

