/**
 * 440Music Registration Form & Anti-Bot Widget Styles
 * File: /usr/share/roundcube/skins/440music/registration.css
 */

/* Input group with domain suffix badge */
.input-domain-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.input-domain-group input.cp-input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  flex: 1;
}
.domain-addon {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  border-left: none;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  user-select: none;
}

/* Password Strength Bar */
.pwd-meter-container {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pwd-meter-track {
  flex: 1;
  height: 4px;
  background: #1f293d;
  border-radius: 2px;
  overflow: hidden;
}
.pwd-meter-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
}
.pwd-meter-label {
  font-size: 11px;
  font-weight: 600;
  min-width: 45px;
  color: #94a3b8;
}

/* Altcha Anti-Bot Security Box */
.altcha-box {
  background: #0d1322;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.altcha-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.altcha-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.altcha-checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid #475569;
  border-radius: 4px;
  background: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.altcha-widget:hover .altcha-checkmark {
  border-color: #d4af37;
}
.altcha-checkmark.altcha-spinner {
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: altcha-spin 0.7s linear infinite;
}
@keyframes altcha-spin {
  to { transform: rotate(360deg); }
}
.altcha-checkmark.altcha-verified {
  background: #10b981;
  border-color: #10b981;
}
.altcha-checkmark.altcha-verified::after {
  content: '✓';
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}
.altcha-text {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
}
.altcha-brand {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Fallback Challenge */
.altcha-fallback-box {
  display: none;
  background: #0d1322;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
}

/* Feedback message boxes */
.reg-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px;
  display: none;
}
.reg-alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.reg-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

/* Stealth traps */
.sec-trap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* Registration Modal Overlay */
.reg-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.reg-modal-backdrop.is-active {
  display: flex;
  opacity: 1;
}
.reg-modal-dialog {
  background: #0b0f19;
  border: 1px solid #374151;
  border-radius: 14px;
  max-width: 490px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.15);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.reg-modal-backdrop.is-active .reg-modal-dialog {
  transform: translateY(0);
}
.reg-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reg-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reg-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.reg-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.reg-modal-body {
  padding: 20px;
}

/* Password Input Wrapper & View Password Eye Toggle Button */
.pwd-input-wrap {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
}
.pwd-input-wrap input.cp-input-solid,
.pwd-input-wrap input.cp-input {
  padding-right: 44px !important;
  width: 100% !important;
}
.pwd-toggle-btn {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  color: #94a3b8 !important;
  padding: 6px 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  transition: color 0.2s ease, background 0.2s ease !important;
  z-index: 5 !important;
  outline: none !important;
  user-select: none !important;
}
.pwd-toggle-btn:hover, .pwd-toggle-btn:focus-visible {
  color: #38bdf8 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.pwd-toggle-btn svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  pointer-events: none !important;
}

