/* PitMaster Auth Modal Styles */

.pm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pm-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pm-modal-card {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  color: #f2f2f2;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Golos Text', system-ui, sans-serif;
}

.pm-modal-overlay.active .pm-modal-card {
  transform: translateY(0) scale(1);
}

.pm-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #262626;
  border: 1px solid #3a3a3a;
  color: #a0a0a0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.pm-modal-close:hover {
  background: #333333;
  color: #ffffff;
}

.pm-modal-body {
  padding: 28px 24px 24px;
}

.pm-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(224, 90, 43, 0.15);
  color: #ff922b;
  border: 1px solid rgba(224, 90, 43, 0.3);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pm-modal-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.pm-modal-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.pm-modal-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.45;
  color: #a0a0a0;
}

.pm-modal-reason {
  background: rgba(211, 84, 0, 0.12);
  border-left: 3px solid #d35400;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #f7a072;
  margin-bottom: 18px;
}

.pm-modal-tabs {
  display: flex;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 20px;
}

.pm-modal-tab {
  flex: 1;
  background: none;
  border: none;
  color: #8c8c8c;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pm-modal-tab.active {
  background: #262626;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pm-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pm-form-label {
  font-size: 13px;
  font-weight: 500;
  color: #cccccc;
}

.pm-form-input {
  background: #242424;
  border: 1px solid #3a3a3a;
  color: #f2f2f2;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  box-sizing: border-box;
  width: 100%;
}

.pm-form-input:focus {
  border-color: #d35400;
  box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.2);
}

.pm-form-input::placeholder {
  color: #666666;
}

.pm-form-extra {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.pm-link-btn {
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.pm-link-btn:hover {
  color: #ff922b;
}

.pm-btn-submit {
  background: #d35400;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.pm-btn-submit:hover {
  background: #e05a2b;
}

.pm-btn-submit:active {
  transform: scale(0.99);
}

.pm-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pm-modal-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
  display: none;
}

.pm-modal-alert.error {
  display: block;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #ff8a80;
}

.pm-modal-alert.success {
  display: block;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #81c784;
}

.pm-modal-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
  text-align: center;
  font-size: 13px;
  color: #888888;
}

.pm-modal-footer a {
  color: #a0a0a0;
  text-decoration: underline;
}

.pm-modal-footer a:hover {
  color: #ffffff;
}

.pm-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: pm-spin 0.6s linear infinite;
}

@keyframes pm-spin {
  to { transform: rotate(360deg); }
}
