/* subastasmas.com - Estilos del modal de auth y header */

/* Header con boton de login */
.smas-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.smas-logo {
  font-size: 18px;
  font-weight: 700;
  color: #e8e8e8;
  letter-spacing: -0.01em;
}

.smas-logo .accent {
  color: #4ade80;
}

.smas-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.smas-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  font-family: inherit;
}

.smas-btn-primary {
  background: #4ade80;
  color: #0a0a0a;
}

.smas-btn-primary:hover {
  background: #22c55e;
}

.smas-btn-secondary {
  background: transparent;
  color: #c8c8c8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.smas-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.smas-btn-link {
  background: transparent;
  color: #4ade80;
  font-size: 13px;
  padding: 4px 8px;
  border: none;
}

.smas-btn-link:hover {
  text-decoration: underline;
}

.smas-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c8c8c8;
}

.smas-plan-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.smas-plan-free {
  background: rgba(255, 255, 255, 0.08);
  color: #a8a8a8;
}

.smas-plan-basic {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.smas-plan-premium {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0a0a0a;
}

/* Modal backdrop */
.smas-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  animation: smas-fade-in 0.15s ease;
}

@keyframes smas-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.smas-modal {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: smas-slide-up 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@keyframes smas-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.smas-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.smas-modal-close:hover {
  color: #fff;
}

.smas-modal h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.smas-modal p.smas-subtitle {
  margin: 0 0 24px;
  color: #888;
  font-size: 14px;
  line-height: 1.5;
}

.smas-form-group {
  margin-bottom: 16px;
}

.smas-label {
  display: block;
  font-size: 13px;
  color: #c8c8c8;
  margin-bottom: 6px;
  font-weight: 500;
}

.smas-input {
  width: 100%;
  padding: 10px 12px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.smas-input:focus {
  outline: none;
  border-color: #4ade80;
}

.smas-form-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.smas-form-actions .smas-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
}

.smas-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #555;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.smas-divider::before,
.smas-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.smas-google-btn {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s;
  font-family: inherit;
}

.smas-google-btn:hover {
  background: #f1f1f1;
}

.smas-google-icon {
  width: 18px;
  height: 18px;
}

.smas-modal-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.smas-modal-switch a {
  color: #4ade80;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.smas-modal-switch a:hover {
  text-decoration: underline;
}

.smas-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.smas-success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #86efac;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Loading spinner */
.smas-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: smas-spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

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

/* Responsive */
@media (max-width: 480px) {
  .smas-modal {
    padding: 24px 20px;
  }
  .smas-header {
    padding: 0 16px;
  }
}
